forked from libarchive/libarchive
-
Notifications
You must be signed in to change notification settings - Fork 0
ContributingToLibarchiveInGithub
bradking edited this page Feb 6, 2012
·
2 revisions
This page serves as a quick guide for anyone new to github and wants to contribute to libarchive. For a quick guide on how to use git in general, see http://gitref.org/.
The first thing you should do is create a fork of libarchive via Github's web interface.
- Go to https://github.com/libarchive/libarchive
- At the top of the page, you should see a button that says Fork. Click this button.
- A popup will appear asking Where do you want to fork this to? Click the button that says Fork to <username> where username is your account name in github.
- A progress page will appear showing the progress of the forking processing. After the forking is done, the page will refresh to a page of your newly created fork of libarchive under your username.
Next, you will of course need to clone the newly created fork down to your system. The next lines will show how to clone your fork and then add the main libarchive repository as a "remote" repository in your cloned repository.
- Go to your fork's webpage, i.e. https://github.com/<username>/libarchive
- Somewhere at the top of the page, you should see three buttons with the labels "SSH", "HTTP", and "Git Read-Only" followed by a URL. Assuming you want to use SSH, click the "SSH" button, then copy the URL.
- In a terminal, 'cd' into a directory where you want the libarchive clone to reside.
- Run the command 'git clone [email protected]:<username>/libarchive.git'.
- 'cd' into the newly cloned repository, i.e. 'cd libarchive'.
- Add the main libarchive repository as a "remote", i.e. 'git remote add libarchive [email protected]:libarchive/libarchive.git'.
- Fetch the sources from the newly added "remote", i.e. 'git fetch libarchive'.
Here are some other guides that may be useful in getting initiated development of libarchive in Github.