Find your content:

Search form

Learn Git - How to commit the files?

 
Share

Commit stores or track the files in the local repository.

git commit -m "<Comments>"

How to move the files to remote repository?

Right now our commit is local. It exist only in the .git folder. If you want to share your work it needs to be moved to remote repositories.

How to Connect remote repository?
git remote add origin https://github.com/sample.git

A project may have many remote repositories at the same time. To be able to tell them apart we give them different names. Traditionaly the main remote repository i git is called origin.

How to upload the files to remote server?
git push origin master

 

 

My Block Status

My Block Content