Demo
fetch all origin repo stuff to forked repo
git
Clone all the repo files to pc
git clone
git -help or help
Important while working with teams
git init
to know which branch you are working
git status
for the changes made in unique file or existing file or to create new branch
git checkout
creates new branch and set to current branch
git checkout -b branch-name
the star branch is current branch
git branch --list
to create branch and then git checkout branch-name to set it as current branch
git branch branch-name
to make updates in stack and can checkout the other branches
git stash
git branch -d branch-name
git push -delete origin
synchronize your branch list
git fetch -p
fetch all from current repo
git fetch --all
display all branches with remote/origin
git branch -a
display all branches then succeed with => git checkout branch-name => git pull
git branch -r
Important with the adding process
to make all new changes to files added or changed
git add .
git add -A
git commit -m ""
git push
git pull
overwriting local changes
git stash push --include-untracked
git stash drop