Skip to content

Pushing to Git Repositories

Vahid Daneshmand edited this page Feb 19, 2019 · 1 revision

If you want to manually update any repository, for instance, edit the maintenance log in carina-data branch in SCCData repo:

Step 0: Clone the repo/branch into your local machine:

git clone --single-branch -b carina-data https://github.com/CareyLabVT/SCCData.git carina-data

It copies everything from carina-data branch in SCCData repo to a directory named carina-data. You can keep this directory on your machine. No need to do that every time and just start from the next step for the next time.

Step 1: Switch to the local repo on your machine:

cd carina-data

Step 2: Pull any possible changes that may have applied to the repo since the last time you clone/pull the repo:

git pull

Step 3: Apply the changes you want to the file(s).

Step 4: Commit the changes you just made and push it to the remote repo:

git add .
git commit -m "Update Maintenance Log"
git push

Clone this wiki locally