Skip to content
GitLab
Projects Groups Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Sign in
  • Git Beginners Git Beginners
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Issues 1
    • Issues 1
    • List
    • Boards
    • Service Desk
    • Milestones
    • Iterations
    • Requirements
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • Insights
    • Issue
  • Wiki
    • Wiki
  • Activity
  • Create a new issue
  • Issue Boards
Collapse sidebar
  • Computer-ScienceComputer-Science
  • Git BeginnersGit Beginners
  • Wiki
  • Home

Home · Changes

Page history
Made Git flow simpler and more verbose. Moved it up. authored Jul 23, 2018 by Andrew James Collett's avatar Andrew James Collett
Hide whitespace changes
Inline Side-by-side
Home.md
View page @ d3ef6827
......@@ -13,6 +13,15 @@ A more complete "cheat-sheet" can be found **[here](https://about.gitlab.com/ima
The above is a very good summary, and you are encouraged to have it open or printed out for your reference. **[Here](https://docs.gitlab.com/ee/gitlab-basics/start-using-git.html)** is another good guide.
### Simple Git Flow
1. `git pull` to bring changes from GitLab to the local repo.
2. Make changes to your local files in the repo.
2. `git add` files to the Index (staging area).
2. `git commit` to move changes from the Index to a local commit.
2. `git push` to send local changes to GitLab.
### Setup
Command | Effect
--- | ---
......@@ -36,13 +45,6 @@ Command | Effect
`git checkout -- <file or folder>` | Replaces the changes in file with the last content in HEAD. Local changes removed!
` git reset --hard origin/master ` | Replaces **all** local changes with the server version. Local changes destroyed!
### Simple Git Flow
1. `git pull`
2. Make changes to your local files in the repo.
2. `git add` files to the staging area.
2. `git commit` the changes in the staging area to a commit.
2. `git push`
## First time using GitLab
This section is aimed towards first time users of both Git and this instance of GitLab.
......
Clone repository
  • Home