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 24, 2018 by Andrew James Collett's avatar Andrew James Collett
Hide whitespace changes
Inline Side-by-side
Home.md
View page @ 8ccb9721
......@@ -45,8 +45,8 @@ Command | Effect
`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 directory>` | Un-stage changes to a file that have been git added. Local changes are kept.
`git checkout -- <file or directory>` | Replaces the changes in the file with the last content in `HEAD`. Local changes are removed!
` git reset --hard origin/master ` | Replaces **all** local changes with the server version. Local changes are destroyed!
`git checkout -- <file or directory>` | Replace the changes in the file with the last content in `HEAD`. Local changes are removed!
` git reset --hard origin/master ` | Replace **all** local changes with the server version. Local changes are destroyed!
## First time using GitLab
......
Clone repository
  • Home