File tree Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Expand file tree Collapse file tree 1 file changed +59
-0
lines changed Original file line number Diff line number Diff line change
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
+ ```
You can’t perform that action at this time.
0 commit comments