Git: Difference between revisions

From DWIKI
Line 23: Line 23:
==fatal: cannot do a partial commit during a merge.==
==fatal: cannot do a partial commit during a merge.==
  git commit -i
  git commit -i
==list untracked files==
git status


=Cheat sheet=
=Cheat sheet=

Revision as of 14:13, 31 May 2020

Links

Documentation

FAQ

error: src refspec master does not match any.

ye well, screw you. you did something wrong!


error: Merging is not possible because you have unmerged files.

This is not a joke!

fatal: cannot do a partial commit during a merge.

git commit -i


list untracked files

git status

Cheat sheet

Create repository on server

mkdir -p git/myproject
cd git/project
git init --bare


browse local repository

git ls-tree --full-tree -r HEAD

push as different user

check .git/config and replace username