Skip to content
Alex Monk edited this page Jul 7, 2015 · 3 revisions

Updating a submodule

First, change into the submodule directory:

joe@azelphur:~/TF2$ cd sourcemod_plugins/TF2-Premium

Then, fetch all the objects from your remotes

joe@azelphur:~/TF2/sourcemod_plugins/TF2-Premium$ git fetch

Check what commits you're including in your update, you can replace 'log' with 'diff' here to see diffs.

joe@azelphur:~/TF2/sourcemod_plugins/TF2-Premium$ git log HEAD..origin/master

Fast-forward

joe@azelphur:~/TF2/sourcemod_plugins/TF2-Premium$ git rebase origin/master

Change back to the root of our repository

joe@azelphur:~/TF2/sourcemod_plugins/TF2-Premium$ cd ../..

Commit the change

joe@azelphur:~/TF2$ git commit sourcemod_plugins/TF2-Premium -m "Update TF2-Premium"

Push it to your Github remote

joe@azelphur:~/TF2$ git push origin master

Clone this wiki locally