- mkdir - create folder
- touch - create file
- ls - informations about files
- git status - state of the working directiory and the staging area
- git diff - shows changes between commits and working tree
- git restore - restore working tree file (when you delete somthing and you want it back)
- git pull - fetch from a local branch
- git show - show various type objects
- vi - create file and add contect for example (vi -> press I on keyboard and add some contect -> press Esc -> :wq)
- git add -A - add all files width all dir
- git add . - git add one file
- git commit -m - add commit
- git commit --amend -m - edit your last commit and save the commit
- git rm --cached - remove one file for example (maybe you want to added new entries in your gitignore)
- git rm -r --cached - the same effect like above + remove all files
-
To copy use command Ctrl + Insert
-
To paste use command Shift + Insert
-
To clean gitbash use command Ctrl + L
- git branch - list all of the branches in your repository local machine
- git branch -r - list of the branches in remote server
- git branch -a - branch one of github
- git branch create_new_branch - create new branch
- git branch checkout create_new_branch - switch new branch
- git checkout - - switch previous one
- git branch -b create_new_branch - create new brach and switch
- git branch -d create_new_branch - delete branch