You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
git add FILE1 [FILE2 ...]
This command stages the changes made on those FILE[S]. (mark them as "to be committed")
git commit -m "MESSAGE" [--amend]
This command commits the staged changes with the given MESSAGE.
If the flag --amend is used, it updates the latest commit instead of creating a new one.
git status
This command prints some status informations:
-> The local branch is behind/ahead/up-to-date with the remote
-> A list of all staged/tracked/untracked changes.
git fetch
This command updates the local references and objects.
git push
This command updates the remote references and objects.
git merge OTHER_BRANCH
This command joins OTHER_BRANCH to the current one. (imports all OTHER_BRANCH changes to the current one)
git pull [--rebase]
This command is equivalent to doing a git fetch and then git merge origin/LOCAL_BRANCH.
If the flag --rebase is used, it appends the local history after the remote one instead of merging the two histories.
git log
This command shows the commit logs
Commit message standard
When doing a commit, your message should always start with #ID where ID is the numerical id of the issue it relates to.
For example when creating a commit on a branch called 42-bug-papaya your message should be like "#42: banana kiwi".
Pronunciation
GIT is pronunced /ɡɪt/
/ɡ/ as in Give
/ɪ/ as in shIp
/t/ as in Town
The text was updated successfully, but these errors were encountered:
Commands
git add FILE1 [FILE2 ...]
This command stages the changes made on those
FILE[S]
. (mark them as "to be committed")git commit -m "MESSAGE" [--amend]
This command commits the staged changes with the given
MESSAGE
.If the flag
--amend
is used, it updates the latest commit instead of creating a new one.git status
This command prints some status informations:
-> The local branch is behind/ahead/up-to-date with the remote
-> A list of all staged/tracked/untracked changes.
git fetch
This command updates the local references and objects.
git push
This command updates the remote references and objects.
git merge OTHER_BRANCH
This command joins
OTHER_BRANCH
to the current one. (imports allOTHER_BRANCH
changes to the current one)git pull [--rebase]
This command is equivalent to doing a
git fetch
and thengit merge origin/LOCAL_BRANCH
.If the flag
--rebase
is used, it appends the local history after the remote one instead of merging the two histories.git log
This command shows the commit logs
Commit message standard
When doing a commit, your message should always start with
#ID
whereID
is the numerical id of the issue it relates to.For example when creating a commit on a branch called
42-bug-papaya
your message should be like"#42: banana kiwi"
.Pronunciation
GIT is pronunced /ɡɪt/
/ɡ/ as in Give
/ɪ/ as in shIp
/t/ as in Town
The text was updated successfully, but these errors were encountered: