|
|
git config --local user.name "fox"
git config --local user.email "fox@localhost"
git config --global user.name "foxhop"
git config --global user.email "foxhop@foxhop.net"
if this is your first commit/push:
git push origin master
else:
git push
original remote github repo, read-only
only way to change this repo is to ask for a merge using a pull-request
forked remote github repo, read-write
push you changes here and perform pull requests
cloned local, read-write
make changes and push to origin
pull changes from upstream, perform merges and fast forwards to keep sync'd
create a remote fork on github
press the fork button when logged in
clone the remote fork to your local host
cd ~/git
git clone https://github.com/russellballestrini/salt.git
cd salt
make some changes to source code and push to remote origin (your github fork)
git add .
git commit
git push
perform a pull-request using github gui
Your local and origin repos now appear out-of-date. Sync them by performing a fast-forward or merge with upstream.
Tell your local repo about the upstream repo
git remote add upstream https://github.com/saltstack/salt.git
git fetch upstream
view all branches
git branch -a
* develop
remotes/origin/0.11
remotes/origin/0.12
remotes/origin/0.13
remotes/origin/HEAD -> origin/develop
remotes/origin/develop
remotes/origin/master
remotes/origin/no_ipv6
remotes/upstream/0.11
remotes/upstream/0.12
remotes/upstream/0.13
remotes/upstream/develop
remotes/upstream/master
remotes/upstream/no_ipv6
sync local with remote upstream
git pull upstream develop
push local to remote origin
git push origin
git config --global core.editor "vim"
git config --global color.ui true
Source: https://foxhop.net/f3bfddd6-2f95-11f1-9b7d-e86a64d24d78/git
Snapshot: 2026-05-25T01:33:49Z
Generator: Remarkbox 1527ef7