Skip to content

Commit 1651c47

Browse files
authored
Update README.md
1 parent 3d16bc7 commit 1651c47

File tree

1 file changed

+61
-0
lines changed

1 file changed

+61
-0
lines changed

README.md

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

0 commit comments

Comments
 (0)