-[@JeevanRupacha](https://github.com/JeevanRupacha)
-[@karkigrishmin](https://github.com/karkigrishmin)First you should create a project directory or folder where the project is going to be initialize .
Start the git command --> git init
create your own branch command --> git checkout -b "your branch name" note: if your have already branch eliminate -b
add repo inatialize command -> git remote add origin [email protected]:JeevanRupacha/spiderWeb.git
or git remote add origin https://github.com/JeevanRupacha/spiderWeb.git
pull the repo -> command git pull [email protected]:JeevanRupacha/spiderWeb.git or
git pull https://github.com/JeevanRupacha/spiderWeb.git
Note : you can use git fetch origin or git clone link
Now you can work
adding your file to version control command-> git add . all file added git add "filename"
saving the changes or committment the file command-> git commit -m "your message"
first push into github command-> git push origin "your branch name"
step 1 : got to github repo step 2 : select your branch name by dropdown step 3 : select pull request step 4 : make sure to change with your co-worker or bosss step 5 : merge or rebase repo
Note : if there if merge conflicts conntact your co-workers
git remote -v --> for which repo you have been added git status --> for all the status what changed git log --> for log of your commit git branch --> which branch current is git checkout master --> switch the master branch git merge "branch name" --> merge the current branch with name branch git checkout -f --> recover all the previous version file i.e last commit git diff --> get changes git rm filename --> delete file ssh-keygen --> generate ssh key cat "path ....rsa.pub" --> get public ssh key ssh-T [email protected] --> Access the ssh key rm -rf .git ----> delete all the git repo which was initialize