Tuesday, June 24, 2014

some of the Git command using github

link your current git folder with remote repository:

 git remote add origin https://yourusername@bitbucket.org/username/your_repo.git add .  


If git dose not track your file or it is the first time use add to add it to looking path using :

 git add .  

If you want to update the data in your repository, first you have to commit your changes and the push it:

git commit -m 'initial commit' 

if you use git shell it will prompt a text file to named your commit action. and then use push to update the repository:

 git push -u origin master   

---------------------------

To retrieve the latest version of the files:

 git pull origin master  

--------------------------

No comments:

Post a Comment