Posts

Showing posts with the label Git commands

Git - DVCS

Created an account in github.com Password is my facebook account password. GIT - A llows groups of people to work on the same documents (often code) at the same time, and without stepping on each other's toes. It's a distributed version control system. Platform: Windows 10 git init - Initialize empty Git repository git remote add origin <link> - Add remote repo. In my case GitHub. git pull origin master - pulls the code from central/remote repo. git push - Pushes all the code to central repo. git status - Used to check the files that are ready to add to local repo. git add - Add the files to staging area git add -A - To add multiple files or folders to the staging area git commit -a -m "" - Commit multiple files and folders to the local repo git log - Shows all the info about commit Branches git branch firstbranch - create a branch named as firstbranch from the master branch (trunk in case of SVN) git checkout firstbranch -