-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
cbb5c20
commit 7184f00
Showing
1 changed file
with
59 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
# How to Collaborate: | ||
|
||
1. Fork the repository to your own GitHub account. | ||
|
||
2. Clone the repository to your local machine | ||
``` | ||
$ git clone "https://www.github.com/{Username}/Maven_Actions.git" | ||
``` | ||
where username is your GitHub account username. | ||
|
||
3. Create a branch where you can do your local work. | ||
Never work on **master** branch as we do not allow master commits except by admins. | ||
``` | ||
$ git branch {branchname} | ||
$ git checkout branchname | ||
``` | ||
|
||
4. Do your work and stage your changes. | ||
``` | ||
$ git add <filename> | ||
``` | ||
|
||
5. Commit you changes with a commit message containing your name, file(s) worked upon, changes added. | ||
``` | ||
$ git commit -m "Name| files| Changes" | ||
``` | ||
|
||
6. Push changes to your forked repository | ||
``` | ||
$ git push -u origin branchname | ||
``` | ||
7. Create a pull request to the upstream repository. | ||
|
||
# Synchronize forked repository with Upstream repository | ||
|
||
1. Create upstream as our repository | ||
``` | ||
$ git remote add upstream "https://www.github.com/NishkarshRaj/Maven_Actions" | ||
``` | ||
|
||
2. Fetch upstream changes in local machine | ||
``` | ||
$ git fetch upstream | ||
``` | ||
|
||
3. Switch to master branch | ||
``` | ||
$ git checkout master | ||
``` | ||
|
||
4. Merge changes in local machine | ||
``` | ||
$ git merge upstream/master | ||
``` | ||
|
||
5. Push changes to your forked GitHub repository | ||
``` | ||
$ git push -f origin master | ||
``` |