Useful github commands

Github is the most popular version control software. After Microsoft has purchased it, they have made private repositories free.  Following are some of the common command which are useful:

install git for mac:

sudo yum install git -y

clone a repository:

git clone UrlOfGitRepo

add new files or changes:

git add .

commit new files/changes:

git commit -n "message"

push changes online:

git push

remember username / password:

git config credential.helper store
git push

 

 

Tagged :

Leave a Reply

Your email address will not be published. Required fields are marked *