Showing posts with label GIT. Show all posts
Showing posts with label GIT. Show all posts

Update local git repository

Suppose there has been changes in the main git repository, and you might want to update the same in your local folder.

Use git pull. This will update the folder


The local file gets updated as expected.

How to upload into Git

Get into the folder where you have downloaded the git repository.

Use

This will make sure that the remote is there. If not -- use git remote origin master.

Get status. If you have made changes, it will show here. git status

When status is clear...
 

When something has been changed in the file.

 Use git add . to add the files for commit and finally commit the files using git commit -m "<Some relevent comment>"


 Once done upload the same into repository. Use git push origin master



 Check if the repository is updated. Result will be uploaded in the repository.

 

How to download from git

Go to Git repository and get the link of the repository - Press the yellow mark to get the URL of repository


Create a new folder and start Git Bash (in my case--> folder name is gita and is on desktop)

write the following


This will download the repository into the folder that has been created.