From 57d626446454a8a3ce730b0afa77b130e3088b83 Mon Sep 17 00:00:00 2001 From: notnull Date: Sat, 26 Jan 2019 16:16:45 -0500 Subject: [PATCH] added git md file --- md/git.md | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 md/git.md diff --git a/md/git.md b/md/git.md new file mode 100644 index 0000000..cdf72f5 --- /dev/null +++ b/md/git.md @@ -0,0 +1,43 @@ +Git +=== + +To create a repo +---------------- + +on gogs + +1. git config --global user.name "<gogsusername>@whatever" +2. create repo in gogs + +on computer + +1. apt install git +2. git clone repo +3. touch README.md +4. git add -A +5. git commit -m "first commit" +6. git push origin master + +To collaborate on an existing repo +---------------------------------- + +1. Be added as a collaborator +2. git clone <repo address (from gogs)> +3. `git checkout -b ` + - `-b` yocreates a new branch if one doesn't exist + - you can name branch anything, start w/ your gogs name + +4. make changes + +To push up your changes +----------------------- + +1. `git checkout master` +2. `git pull origin master` +3. `git checkout ` +4. `git merge master` +5. `git add -A` +6. \~git commit -m "concise explanation of what I did"\~ +7. `git push origin ` +8. submit a pull request +