Wednesday, 22 April 2020

Git and GitHub Basic Operations Commends

Git is a free and open source distributed version control system designed to handle everything from small to very large projects with speed and efficiency.

GitHub is built for collaboration. Set up an organization to improve the way your team works together, and get access to more features.


git config --global user.name "Bala" - setting the author name

git config --global user.email "bala@example.com" - setting the author email

git status - Checking Status of modified files

git init - Initialize the local repos

git add . - Staging the modified files

git commit -m "commit message here" - Commit the changes

git remote add origin https://github.com/bkkrishnan/SampleProject.git - connect the remote repository like GitHub, Azure devops, aws code..

git push -u origin master -  push the changes into remote repository

git branch develop - create a new branch in local

git checkout develop - changing the branch

git push -u  origin develop - push the changes into develop branch in remote repository