meta data for this page
This is an old revision of the document!
GIT PAGE
Undo a commit
Undo a commit and redo
$ git commit ... (1) $ git reset --soft HEAD~1 (2) << edit files as necessary >> (3) $ git add .... (4) $ git commit -c ORIG_HEAD (5)
Local copy of one branch from public repo
git remote add ti git://git.ti.com/ti-linux-kernel/ti-linux-kernel.git git remote add tilocal /home/user/mirrors/ti-linux-kernel git fetch ti refs/heads/ti-linux-3.14.y git checkout ti-linux-3.14.y
Now we have latest version from ti-linux-3.14.y branch. Add our local GitLab server
git remote add gitlab ssh://path...
And push current branch (we are on ti-linux-3.14.y after checkout)
git push -u gitlab