User Tools

Site Tools


software:git

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
software:git [2019/02/19 10:29] himusersoftware:git [2022/01/14 18:44] (current) – external edit 127.0.0.1
Line 9: Line 9:
 </code> </code>
  
-  * Committing something (changes are not at the remote repository): +  * Committing something (changes are not at the remote repository):<code>
-<code>+
 git add <file_you_want_to_add> git add <file_you_want_to_add>
 git commit -m "commentary, explain here what you have changed" git commit -m "commentary, explain here what you have changed"
 </code> </code>
  
-  * Push (changes the remote repository to your current local version, can only be done if all changes of the remote repository are included in your local version): +  * Push (changes the remote repository to your current local version, can only be done if all changes of the remote repository are included in your local version):<code>
-<code>+
 git push git push
 </code> </code>
  
-  * Pull (updates your local version by the changes made in the remote repository): +  * Pull (updates your local version by the changes made in the remote repository):<code>
-<code>+
 git pull git pull
 +</code>
 +
 +  * Create a new branch named newIssue: <code>
 +git branch newIssue
 +</code>
 +
 +  * Switch to another branch: <code>
 +git checkout newIssue
 +</code>
 +
 +  * Switch back to master: <code>
 +git checkout master
 </code> </code>
software/git.1550572171.txt.gz · Last modified: 2022/01/14 18:44 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki