Home
Personal tools
Namespaces
Variants
Actions

Using Git 2

From Naevwiki

Jump to: navigation, search

This article describes the steps needed to set up a Github repository in order to push commits. It is assumed you already have Git set up.

git remote set-url origin git@github.com:$USER/naev.git

Where $USER is your Github account name. This URL should be visible on Github as well, when viewing your fork of the Naev repository. If everything went well, you should now be able to push commits to your own repo. You should also add bobbens' repo as a remote, so that you can pull from there when changes are made. To do this, type:

git remote add bobbens git://github.com/bobbens/naev.git

After this you can pull with

git pull bobbens <branch>

Where <branch> is the name of the branch you want. This will usually be master.

Below you'll find a few useful commands for adding and changing tracked files.

To add new files to be tracked by git, type

git add <path>

To commit a file or path, type

git commit <path>

To commit all changed files (including files you manually added), type

git commit -a

To push your commits, type

git push origin