Advertisement

Responsive Advertisement

Git basic commands

 Git Basic Commands:

1)$git remote -v 
             To see the remote github url to which we want to push code $ssh-keygen -generates public and private keys for password less authentication

2)$git remote rm origin 
             To remove added remote url

3)$git rm --cached <filename>
             To remove single file from staging area to working directory or to untrack tracked file.
4)$git rm -r --cached .
             To remove all the staged files to working directory.
5)$git checkout <filename>
             If we modify any file in staged area then it is moved to working directory with git status as      modified.So get revert the changes i.e get back the previously staged file we will use checkout.


Post a Comment

0 Comments