Skip to content
Joey Kleiner edited this page Nov 7, 2023 · 17 revisions

Mac:

jkleiner@MBP-00474 GitHub % git clone https://github.com/venturewell/DS_github_show_tell.git
Cloning into 'DS_github_show_tell'...
Username for 'https://github.com': jdkleiner
Password for 'https://jdkleiner@github.com': 
remote: Enumerating objects: 133, done.
remote: Counting objects: 100% (53/53), done.
remote: Compressing objects: 100% (24/24), done.
remote: Total 133 (delta 28), reused 50 (delta 26), pack-reused 80
Receiving objects: 100% (133/133), 18.80 KiB | 1.57 MiB/s, done.
Resolving deltas: 100% (52/52), done.

Windows/Linux:

git pull origin master
git checkout -b "dev_branch_name"
git add -A
git commit -a -m "Commit Message""
git -c http.sslVerify=false push origin master

# rename a branch while pointed to any branch
git branch -m <oldname> <newname>

# create a new branch from an existing branch
git checkout -b <new_branch> <old_branch>

# see all tracking branches
git branch -vv

# ssh tokens

# pull remote branch to local
# if jk_branch exists on the remote repository, but not on your local branch, you can simply type:
git switch jk_branch
# or do the following 
git fetch --all
git checkout jk_branch

# pull requests for forked repos
forked from respec/HSPsquared
 Upstream -> origin -> clone
 In GitHub -> specify which repo for pull request

Fixing git permissions on deq1:

Also, here is the command to make sure that we both can do stuff in there once you are back in sudo: 
sudo chgrp modelers .git
sudo chgrp modelers .git/* -R
sudo chmod g+w .git/* -R

Clone this wiki locally