Posts

Showing posts with the label Git

ssh key generation

ssh-keygen -t rsa -C " your_email@youremail.com "

All git commands

    git help command     or git command --help     //Show help for a command ************************Repository creation: ************************ git init     //Create a repository in the current directory git clone url     //Clone a remote repository into a subdirectory ***************************File operations:**************************** git add path                     //Add file or files in directory recursively git rm path                     //Remove file or directory from the working tree       -f                     //Force deletion of file(s) from disk git mv path destination     //Move file or directory to new location       -f                     //Overwrite existing destination files git checkout [rev] file     //Restore file from current branch or revision       -f                     //Overwrite uncommitted local changes ********************************Working tree:******************************* git status             //Show status of the working tree git diff...