2012年2月5日星期日

git

do not use Ctrl+z but Ctrl+x to exit when enter git commit help window

if you face this error:

fatal: Unable to create '/path/to/repo/.git/index.lock': File exists.

If no other git process is currently running, this probably means a
git process crashed in this repository earlier. Make sure no other git
process is running and remove the file manually to continue.

this can solve the problem

rm .git/index.lock

----------------
git status
git diff
git reset HEAD <>
git checkout -- <>
git add <>
git commit
------------------
git tag -a "asst0-start" -m "ASST0 start"

vim ./gitignore

build
.depend
/defs.mk
kern/compile/
user/testbin/randcall/calls.c

-----------------------
When you clone a repository, Git automatically sets up the
remote repository you cloned from as linked to your clone.

git remote -v

Before you perform any merge it is best to have any changes in your
working directory committed.



没有评论: