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
Update Home authored Jul 20, 2018 by Andrew James Collett's avatar Andrew James Collett
Hide whitespace changes
Inline Side-by-side
Home.md
View page @ 275c5d64
......@@ -22,6 +22,7 @@ Command | Effect
`git config --global core.editor "gedit -w -s" ` | Set commit message editor to `gedit`. Simple GUI editor.
`git config --global core.editor "vim" ` | Set the default commit message editor to `vim`.
### Simple Git Commands
Command | Effect
--- | ---
......@@ -31,6 +32,9 @@ Command | Effect
`git add <file or folder>` | Add the specific file or folder to the staging area.
`git commit` | Move the changes from the staging area to `HEAD` on your local machine
`git push` | Send the commits on your local machine to the GitLab server
`git reset <file or folder>` | Un-stage changes to a file that have been git added. Local changes kept.
`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`
......
Clone repository
  • Home