RU | EN | DE

CommandsDescription
git initinitialization
git add *git add text.txtgit rm text.txtgit mv oldname.txt newname.txtadd filesadd a filedelete a filerename a file
git commit -m “first commit”commit with a message
git remote add origin https://github.com/path/name.gitgit remote set-url origin git@github.com-vibond:VIBondarenko/clavionx.gitadd a remote repositorychange the remote repository
git push -u origin masterpush changes to the remote repository
git statuscurrent repository status (changes, unresolved conflicts, etc.)
git log —onelineview all commits
git checkout .restore everything
git checkout “commit code”revert to the state of this commit
git checkout masterswitch back to the master branch
git fetch —allgit reset —hard origin/master orgit reset —hard origin/<branch_name>restore files on the local computer
git push originmerge all local repository branches into the remote repository
git push origin mastersame as above, but pushes only the master branch
git push origin HEADpush the current branch without typing its full name
git pull originmerge all branches from the remote repository