4. Classified as Business
Commands
Pwd – print working directory
Ls – list the files in this directory
Git log
Git diff
Git log –stat
git log -n 1
Git add .
Git commit –m “ commit message“
Git pull origin master
Git push origin master
git remote show origin
5. Classified as Business
Git branch Shows all available branches
Git stash It saves the changes as WIP , it don’t delete the changes
done(untracked files)
Git branch -d
branch_name
To delete branch locally
Git stash list Shows list of WIPs
Git stash clear Removes completely all stash list
Git gc Removes garbage collection
Git config --list Shows all git config details like username, email, pwd,
etc
6. Classified as Business
Creating a branch in local
I created a branch through git bash (LOCAL) and it's not showing in *VSTS
follow below commands*:
git branch <new_branchname>
git checkout <new_branchname>
git push origin <new_branchname>
if you create the branch local, we have to push it first in remote branch
7. Classified as Business
Git ignore command
After adding gitignore file a enter following commands in git bash
git rm -r --cached .
git add .
git commit -m "Remove ignored files"