-
Notifications
You must be signed in to change notification settings - Fork 0
Home
-
Fork: Merge with original repo is possible with a pull request.
-
Clone: Merge with original repo is only achieved by pushing to fork and then a pull request.
Note: It is better to fork a repository before cloning it due to copyrights when the user is NOT declared as a contributor.
General steps:
- Fork repository.
- Clone forked repository.
- Make Changes in Local.
- Push to Personal Remote.
- Pull Request to Original Remote.
Note: It is a faster option to clone the original repository without a previous fork of the project if the user IS declared as a contributor.
General steps:
For more information about contributing to projects with Github refer to its official documentation.
Note: The following is a list of common syntax git commands but many more options are avaliable.
Refer to the official git documentation to view more available options.
Basic | Command | Description |
---|---|---|
1. init |
|
|
2. clone |
|
|
3. config |
|
|
4. checkout |
|
|
5. fetch |
|
|
6.merge |
|
|
7. pull |
|
|
8. add |
|
|
9. commit |
|
|
10.push |
|
|
11.pull request |
|
|
12. branch |
|
|
13. diff |
|
|
14. log |
|
|
Note: Remember to call branches by their names in your commands (See 12>3).
Tip: <main>
is the default name for remote repositories as <master>
is for local.
fetch: Fetch is the safe version of pull because local files aren't merged until they are reviewed, checked out & merged.
-
<master>
~ Default branch name of local repositories in Git. -
<main>
~ Default branch name of remote repositories in GitHub. -
<origin>
~ Primary working dir. of remote repositories by default.
See Also:
Glossary
Feel free to send me an email if you have any questions.
Contributions are greatly appreciated!
- git revert ~ pending
- git restore ~ pending
- git bisect ~ pending
- git archive ~ pending
- git status ~ pending
- git remote ~ pending
- git remote-helpers ~ pending
- git filter-branch ~ pending
- git rev-parse ~ pending
- git describe ~ pending
- git submodule ~ pending
- git help ~ pending
- git reset ~ pending
- git switch ~ pending
- git cli ~ pending
- git shell ~ pending
- git notes ~ pending
- git reflog ~ pending
- git rev-list ~ pending
- git replace ~ pending
- git rerere ~ pending
- git update-index ~ pending
- git bundle ~ pending
- git send-email ~ pending
- git web-browse ~ pending
- git pack-objects ~ pending
- git annotate ~ pending
- git tar-tree ~ pending
- git read-tree ~ pending
- git mergetool ~ pending
- git-sh-setup ~ pending
- git var ~ pending
- git gc ~ pending
- git annex ~ pending
- git stash ~ pending
- git grep ~ pending
- git show ~ pending
- git exec ~ pending
- git tag ~ pending
- git whatchanged ~ pending
- git show-ref ~ pending
- git annex ~ pending
- git difftool ~ pending
- git receive-pack ~ pending
- git rm ~ pending
- git ls ~ pending
- git ls-files ~ pending
- git am ~ pending
- git mk ~ pending
- git cd ~ pending
- gitrevisions ~ pending
- gitattributes ~ pending
- cg-admin-setuprepo ~ pending
- etckeeper ~ pending
- perlbrew ~ pending
- guilt ~ pending
- cd ~ pending
- pass ~ pending
- mr ~ pending
- cg ~ pending
- rpkg ~ pending
- git k ~ Show graphical representation of commits.
- git k HEAD...FETCH_HEAD ~ Show everything that is reachable for users.
- git --version ~ Show current version of git.
-
git
*
~ Tutorial on git core commands. - git instaweb ~ Setup web server bound to local IP.
- git frontend | git fast-import: Import large projects in a minimum amount of memory (100k+ commits on $2k PC in 1h). +$GIT_DIR/hooks/* ~more