Git FLS Part 1 Intro
Git FLS Part 1 Intro
This is optional you may view the session without one To do so, youll need to have an Amazon laptop, and be online We are limiting access to commands that push to GitFarm
Sit in the designated area of Arizona 1.100/101 Everyone else will need to skip those particular steps
Preferably, ssh into a RHEL5 desktop, with SDETools OR, have Git installed on your Windows or Mac
Part 1:
Git for People Who Have More Important Things to Do Than Learn Git
Part 2:
Part 3: Part 4:
Git for People Who Have More Important Things to Do Than Learn Git
Ground rules
This is an experiment bear with us SSH into your desktop machine now Windows/Mac users need to have Git installed already We cant let everybody perform the push!
We intend to record this session We intend to keep things moving Raise your hand if you want assistance Didnt get to participate? Join git-training-interest@
Cloning a repository / adding a package to the workspace Viewing history (the DAG) Creating a branch Creating a commit Posting a review Publishing your finished code Sharing unfinished code with others Doing a merge Doing a simple rebase Recovering from mistakes and catastrophes
Add a package
Linux desktop users
brazil ws --create --name git-intro Performs a clone brazil ws --use -package GitIntroPart1_XX cd src/GitIntroPart1_XX
Other users
git checkout Create a new file b my-branch t origin/mainline git add new-file.txt
status log -2 --amend commit config log -p --global color.ui true log -2 log --graph --decorate --all show
post-review --help
Other users
# OnMerge branch mainline your changes, if needed # Your branch and 'origin/mainline' have diverged, git status # and have 2 and 1 different commit each, respectively. # # On branch mainline nothing to commit, working directory clean # Your branch is ahead of 'origin/mainline' by 1 commit. # nothing to commit, working directory clean
git push
Server is here
git share
Other users
Other users
Lets do a merge
Linux desktop users
Other users
Lets pretend
git git git git git git
log --graph --decorate --all branch feature1 origin/feature1 branch feature2 origin/feature2 branch d r origin/feature1 branch d r origin/feature2 log --graph --decorate --all
Lets do a merge
Lets do a rebase
git add checkout feature2 tpv.txt git git status rebase mainline git git rebase status--continue
git
Edit tpv.txt resolve the conflicts git dag and --oneline git git log diff --oneline mainline..
reflog feature2 branch rescue f2b6c6d branch rescue feature2@{1} dag --oneline
Backups
Other users
Gits data model The index The stash MUAHAHAHAHAHAAAA!! Interactive rebase Hooks Find bugs with bisect Filter-branch Fast-export, fast-import
For general Git questions: git@ For further training sessions: git-training-interest@ Keep an eye on the Git wiki page