Debug School

Raju Maramulla
Raju Maramulla

Posted on

Day5_Git_Commands

git init -- Initialize the empty repository
git add -- Add files to the repo
git config -- Add author details to the repo

git remote add -- Add alias name origin to the remote URL
git clone -- Clone the remote repo

git log -- Check the changes on the current repo
git status -- Check status of the files on the current branch

git pull -- Pull the remote changes from remote repo master branch
git push -- Push the local changes to remote repo master branch

git clean -- Clean the current changes
git reset -- Reset the files
git diff -- Check changes in two commits

git branch -- To list the branches in current repo
git checkout -- To checkout the new branch
git commit -- To commit the local changes to the Staging area
git merge -- To merge current branch with master
git cherry-pick -- To merge particular commit to the master branch

Top comments (0)