Skip to content

Commit c252349

Browse files
authored
Update CONTRIBUTING.md
1 parent 2292d58 commit c252349

1 file changed

Lines changed: 28 additions & 1 deletion

File tree

CONTRIBUTING.md

Lines changed: 28 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,31 @@
1-
Fork the repo or clone the repo to the local system
1+
1. Fork the repo or clone the repo to the local system
22
```
33
git clone https://github.com/kaiiyer/UBA.git
44
```
5+
6+
On your computer, move the file you'd like to upload to GitHub into the local directory that was created when you cloned the repository.
7+
8+
2. Open Terminal.
9+
10+
3. Change the current working directory to your local repository.
11+
```
12+
cd <your dir>
13+
```
14+
15+
4. Stage the file for commit to your local repository.
16+
```
17+
$ git add .
18+
# Adds the file to your local repository and stages it for commit. To unstage a file, use 'git reset HEAD YOUR-FILE'.
19+
```
20+
21+
5. Commit the file that you've staged in your local repository.
22+
```
23+
$ git commit -m "Add existing file"
24+
# Commits the tracked changes and prepares them to be pushed to a remote repository. To remove this commit and modify the file, use 'git reset --soft HEAD~1' and commit and add the file again.
25+
```
26+
6. Push the changes in your local repository to GitHub.
27+
28+
```
29+
$ git push origin your-branch
30+
# Pushes the changes in your local repository up to the remote repository you specified as the origin
31+
```

0 commit comments

Comments
 (0)