Skip to content

Commit 670b744

Browse files
authored
cooperation on GitHub (submodule)
1 parent daf8a4e commit 670b744

1 file changed

Lines changed: 20 additions & 1 deletion

File tree

‎README.md‎

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1040,6 +1040,25 @@ git push origin new-feature-branch
10401040
git pull
10411041

10421042
git config pull.rebase false
1043-
git reset --hard HEAD@{1}
1043+
git reset --hard HEAD~1
10441044

1045+
### cooperation on GitHub (submodule)
1046+
```
1047+
1. get the newest update from the original project
1048+
2. push your own codes even without permission
1049+
```
10451050

1051+
```
1052+
1. fork the desired project.
1053+
2. clone the fork into your local repo
1054+
git clone https://github.com/MitchellX/flash-attention.git
1055+
3. add the original repo as upstream, so that you can pull the newest changes
1056+
git remote add upstream https://github.com/Dao-AILab/flash-attention.git
1057+
4. see the remote choices
1058+
git remote -v
1059+
5. get the newest changes
1060+
git pull upstream/main
1061+
or git fetch upstream/main + git merge upstream/main
1062+
6. push codes to remote (default: origin/main, you don't have access to upstream/main)
1063+
git push
1064+
```

0 commit comments

Comments
 (0)