908 B
908 B
Git
To create a repo
on gogs
- git config --global user.name "<gogsusername>@whatever"
- create repo in gogs
on computer
- apt install git
- git clone repo
- touch README.md
- git add -A
- git commit -m "first commit"
- git push origin master
To collaborate on an existing repo
-
Be added as a collaborator
-
git clone <repo address (from gogs)>
-
git checkout -b <branchname>
-b
yocreates a new branch if one doesn't exist- you can name branch anything, start w/ your gogs name
-
make changes
To push up your changes
git checkout master
git pull origin master
git checkout <branchname>
git merge master
git add -A
- ~git commit -m "concise explanation of what I did"~
git push origin <yourname>
- submit a pull request