software:git
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
software:git [2019/02/19 10:29] – himuser | software:git [2022/01/14 18:44] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 9: | Line 9: | ||
</ | </ | ||
- | * Committing something (changes are not at the remote repository): | + | * Committing something (changes are not at the remote repository):< |
- | < | + | |
git add < | git add < | ||
git commit -m " | git commit -m " | ||
</ | </ | ||
- | * 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):< |
- | < | + | |
git push | git push | ||
</ | </ | ||
- | * 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):< |
- | < | + | |
git pull | git pull | ||
+ | </ | ||
+ | |||
+ | * Create a new branch named newIssue: < | ||
+ | git branch newIssue | ||
+ | </ | ||
+ | |||
+ | * Switch to another branch: < | ||
+ | git checkout newIssue | ||
+ | </ | ||
+ | |||
+ | * Switch back to master: < | ||
+ | git checkout master | ||
</ | </ |
software/git.1550572171.txt.gz · Last modified: 2022/01/14 18:44 (external edit)