Skip to content

Commit 166b3ca

Browse files
authored
Create CONTRIBUTING.md
1 parent 93f2ffc commit 166b3ca

File tree

1 file changed

+59
-0
lines changed

1 file changed

+59
-0
lines changed

CONTRIBUTING.md

Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
# How to Collaborate:
2+
3+
1. Fork the repository to your own GitHub account.
4+
5+
2. Clone the repository to your local machine
6+
```
7+
$ git clone "https://www.github.com/{Username}/Automation-using-Shell-Scripts"
8+
```
9+
where username is your GitHub account username.
10+
11+
3. Create a branch where you can do your local work.
12+
Never work on **master** branch as we do not allow master commits except by admins.
13+
```
14+
$ git branch {branchname}
15+
$ git checkout branchname
16+
```
17+
18+
4. Do your work and stage your changes.
19+
```
20+
$ git add <filename>
21+
```
22+
23+
5. Commit you changes with a commit message containing your name, file(s) worked upon, changes added.
24+
```
25+
$ git commit -m "Name| files| Changes"
26+
```
27+
28+
6. Push changes to your forked repository
29+
```
30+
$ git push -u origin branchname
31+
```
32+
7. Create a pull request to the upstream repository.
33+
34+
# Synchronize forked repository with Upstream repository
35+
36+
1. Create upstream as our repository
37+
```
38+
$ git remote add upstream "https://www.github.com/NishkarshRaj/Automation-using-Shell-Scripts"
39+
```
40+
41+
2. Fetch upstream changes in local machine
42+
```
43+
$ git fetch upstream
44+
```
45+
46+
3. Switch to master branch
47+
```
48+
$ git checkout master
49+
```
50+
51+
4. Merge changes in local machine
52+
```
53+
$ git merge upstream/master
54+
```
55+
56+
5. Push changes to your forked GitHub repository
57+
```
58+
$ git push -f origin master
59+
```

0 commit comments

Comments
 (0)