Git client handling: Unterschied zwischen den Versionen

Aus Xinux Wiki
Zur Navigation springen Zur Suche springen
Zeile 21: Zeile 21:
 
*git status
 
*git status
 
<pre>
 
<pre>
On branch master
+
...
Your branch is up-to-date with 'origin/master'.
 
 
Changes to be committed:
 
Changes to be committed:
   (use "git reset HEAD <file>..." to unstage)
+
   ...
 +
new file:  sux.txt
 +
</pre>
  
new file:  sux.txt
 
</pre>
 
 
=transfer to local repo=
 
=transfer to local repo=
 
*git commit -a -m sux-ver1
 
*git commit -a -m sux-ver1

Version vom 6. März 2018, 13:15 Uhr

last changes detailed

  • git show

all changes

  • git log

new file

create

  • echo Hallo Welt > sux.txt

status untracked

  • git status
...
Untracked files:
  ...
	sux.txt
  ...

add whole directory

  • git add .

status tracked

  • git status
...
Changes to be committed:
  ...
 	new file:   sux.txt

transfer to local repo

  • git commit -a -m sux-ver1

transfer from local to remote repo

  • git push --set-upstream origin master

change file

change

  • echo sauhund >> sux.txt

status modified

  • git status
On branch master
Your branch is up-to-date with 'origin/master'.
Changes not staged for commit:
  (use "git add <file>..." to update what will be committed)
  (use "git checkout -- <file>..." to discard changes in working directory)

	modified:   sux.txt

no changes added to commit (use "git add" and/or "git commit -a")

transfer to local repo

  • git commit -a -m sux-ver2

transfer from local to remote repo

  • git push --set-upstream origin master