Git Notes There are many was to do any of the followoing. This is just one way. General git knowledge is widely available. If you’ve never used it, read an overview!

Proxy Setup for LSI IT won’t allow, at least generally, access to remote git repositories. The following works at present. Environment export export export export export export

proxy="http://135.156.228.210:9400" http_proxy=$proxy https_proxy=$proxy ftp_proxy=$proxy no_proxy=lsi.com GIT_PROXY_COMMAND=/home/jjacques/scripts/git_proxy_command.sh

git_proxy_command.sh may take some explaination. It is a wrapper for the “connect” command (/workspace/sw/jjacques/apps/src/connect). Make a copy of the source, and build connect. I may change things at any time, and without notice. .ssh/config Host github.com ProxyCommand corkscrew 135.156.228.210 9400 %h %p

Create a Repository For U-Boot, use git://git.denx.de/u-boot.git For Linux, use git://git.kernel.org/pub/scm/linux/kernel/git/stable/linuxstable.git or one of the Yocto repos, git://git.yoctoproject.org/linux-yocto-3.8 for example. In that clone, do the following. $ $ $ $ $ $

git git git git git git

remote rm origin remote add origin config master.remote origin config master.merge refs/heads/master push origin master push --tags origin master 1

Switch origin to https $ git config remote.origin.url

Add the original repo as upstream $ git remote add upstream

To get the latest changes from upstream $ git fetch upstream $ git merge upstream/master

Clone a Repository $ git clone [email protected]:lsigithub/lsi_axxia_linux.git

Get a Remote Branch and Turn on Tracking $ git checkout --track -b origin/

Switch to an Existing Branch $ git checkout

List Local Branches $ git branch

List all Branches $ git branch -a

Create a Patch $ git format-patch master --stdout > OR $ git diff master >../ 2

Create a Remote Branch $ $ $ $

git git git git

checkout branch push origin branch --set-upstream origin/

Checking in Changes $ git add $ git commit

Update a Remote Branch $ git push

Reverting All Uncommited Changes $ git reset --hard $ git clean -fdx

Deleting a branch $ git branch -d $ git push origin :

Renaming a Branch $ git branch -m old-branch-name new-branch-name $ git push origin :old-branch-name $ git push -u origin new-branch-name

Tagging $ git tag -a -m

Delete a Tag (Local and Remote) $ git tag -d $ git push origin :refs/tags/ 3

Merging commits $ git rebase -i HEAD~N (where N is the number of commits to merge) $ git commit --amend (to change the final comments) $ git rebase --continue (to finish)

Push to public. . . $ git checkout master $ git push public $ git push public --tags

Merging Safely $ git branch $ git merge If the merge went well, $ git branch -d If not, $ git reset --hard

Document Version $Revision: 1.1 $ $Date: 2014/03/18 17:01:03 $

4

Git Notes - GitHub

“connect” command (/workspace/sw/jjacques/apps/src/connect). Make a copy of the source, and build connect. I may change things at any time, and without.

130KB Sizes 4 Downloads 312 Views

Recommend Documents

git-annex - GitHub
Feb 5, 2012 - [email protected] ... Project & Network Operations Manager at Globalways AG ... Best version control system available (imo...).

Pro Git - GitHub
2014-10-12. *This is the PDF file for the Pro Git book contents. ...... is often the best route if you feel comfortable compiling software from source. It is also the case that .... user.name=Scott Chacon [email protected]. 10 ...... your

Git Commit Integration Entity Relationship Diagram - GitHub
GithubUser email string ∗ id integer PK username string ∗. User current_sign_in_at datetime current_sign_in_ip string email string ∗ U github_app_token string.

Git can facilitate greater reproducibility and increased trans - GitHub
For larger collaborative efforts, Git and Git hosting services make it possible ... All scientists use version control in one form or another at various stages of their .... Figures 2 and 3 show the list of collaborators and a network diagram of how

Présentation Git - Un outil de collaboration puissant - GitHub
Feb 28, 2017 - ... libre CC-BY 4.0. • En ligne (slides en pdf et sources LATEX, exercices. . . ) : ... Email git config --global user.email "jules. [email protected]". L'option ... Commande : git add .... CONFLICT (content): Merge conflict in index.h

github-git-cheat-sheet (1).pdf
git config --global user.email "[email address]". Sets the email you ... Start a new repository or obtain one from an existing URL ... github-git-cheat-sheet (1).pdf.

github-git-cheat-sheet (1).pdf
Download. Connect more apps... Try one of the apps below to open or edit this item. github-git-cheat-sheet (1).pdf. github-git-cheat-sheet (1).pdf. Open. Extract.

Notes for GTM 9 - GitHub
Aug 6, 2013 - the eigenvalues of adx are precisely the n2 scalars ai − aj(1 ⩽ i, j ⩽ n), which of course need not be distinct. Solution. Choose a basis for Fn so ...

Notes on 2014 workshop - GitHub
o Bulge and plane (W. Clarkson) o Magellanic Clouds (K. Vivas) o Commissioning observing program(C. Claver) o Additional topics invited. • MAF hack session ...

Git Internals
code-review-pdf) – Common mistakes in Rails applications, and how to fix them ... 10. Understanding Git. 10 What is Git? 11 Focus and Design. 13 Git Object Types. 22 The Git ... 107 Hosted Repositories. 111 ... tools from the Apple Website (http://

Durgasoft SCJP Notes Part-1 - GitHub
Durgasoft SCJP Notes. Part-1 http://javabynataraj.blogspot.com 1 of 255. Page 2. http://javabynataraj.blogspot.com 2 of 255.

Notes and Tutorial on GDB - GitHub
CSM Linux Users Group ... GDB can make use of special symbols in your program to help you debug. ... exists and is up to date, and if so, call the debugger.

USAD Art Resource Guide Notes - GitHub
Section 1 Art Fundamentals. - Introduction to Art. • Difference in the definition of 'art'. • The two methods to analyze art works : formal analysis/ contextual analysis.

Durgasoft SCJP Notes Part-2 - GitHub
Durgasoft SCJP Notes. Part-2 http://javabynataraj.blogspot.com 1 of 401. Page 2. http://javabynataraj.blogspot.com 2 of 401. Page 3 ...

git cheat sheet - Cheat-Sheets.org
git clone ssh://[email protected]/repo.git. Create a new local repository. $ git init. LOCAL CHANGES. Changed files in y our working directory. $ git status.

2018-01-24 Git rebase.pdf
Page 4 of 26. Definition reapply commits on top of another base tip. It's the process of moving a. branch (set of commits) to a. new base commit. Rebasing is a common way to. integrate upstream changes. into your local repository. What is a Git rebas

GIT-VA-2016.pdf
Page 1 of 1. BLOG: http://bit.ly/GITBlog. FACEBOOK: http://bit.ly/GITfacebook. INSTAGRAM: http://bit.ly/GITInsta. SNAPCHAT: http://bit.ly/GITSnapchat. TWITTER: http://bit.ly/GITTweet. YOUTUBE: http://bit.ly/GITYouTube. Connect with us on. Social Medi

A successful Git branching model - nvie.com
release branch for. 1.0. Author: Vincent Driessen. Original blog post: http://nvie.com/posts/a-succesful-git-branching-model. License: Creative Commons BY-SA.Missing: