wiki:UsingGit

Version 2 (modified by beirdo, 15 years ago) ( diff )

Fix the git URL

Using git with MythTV

Once this is put onto MythTV servers, these details will change.

For now, we will use the svn->git mirror:

git clone git://git.jannau.net/mythtv.complete/

For committing, use SVN (which you will have to checkout separately)

configuring git

git config --global user.name "Your Name"
git config --global user.email you@yourdomain.example.com

Please use your real name and a real email address. This will be attached to each commit you make, and is needed for legality reasons (i.e. to clearly denote the contributors, which can be a life-saver if we have licensing issues later)

git for svn users

https://git.wiki.kernel.org/index.php/GitSvnCrashCourse

https://git.wiki.kernel.org/images-git/7/78/Git-svn-cheatsheet.pdf

svn command git command comments
svn checkout git clone
svn diff git diff pretty much identical
svn stat git status
svn commit git commit / git push in git, git commit commits locally, git push pushes to the upstream repo. Additionally, changes must be staged before committing.
---- git add -i / git add -p stage commits
svn update git pull technically, this is two steps combined (git fetch, git merge)
svn copy (to create a branch) git branch (or git checkout -b)
svn copy (to create a tag) git tag
svn switch git checkout branch
svn merge git merge
Note: See TracWiki for help on using the wiki.