Skip to main content

Posts

Showing posts from August 21, 2019

Useful Git Commands

Git Configuration DESCRIPTION GIT COMMAND Configure the author name to be used with your commits. git config --global user.name "Sam Smith" Configure the author email address to be used with your commits git config --global user.email sam@example.com Will remove user credential details from the repository git config --local credential.helper "" List all currently configured remote repository URLs git remote -v If you haven't connected your local repository to a remote server, To add a remote server to a local repository git remote add origin Git Commit and Push DESCRIPTION GIT COMMAND Create a file name  README.md  with  Readme content  content echo "Readme content" >> README.md List the files you've changed