Free Trial

Safari Books Online is a digital library providing on-demand subscription access to thousands of learning resources.


  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Versionierungsbefehle > Neue Dateien in das Repository aufnehmen

Neue Dateien in das Repository aufnehmen

Zunächst sehen Sie hier die kurze Fassung, anschließend folgt eine ausführliche Erklärung:

git add neue_datei # Neue Datei stagen
git commit # und die Änderung einchecken

Gehen wir nun etwas ausführlicher auf die einzelnen Schritte und potenzielle Fallstricke ein. Legen wir eine leere README-Datei an und betrachten erneut die Ausgabe von git status:

touch README
git status
# On branch master
#
# Initial commit
#
# Untracked files:
#   (use "git add <file>..." to include in what will be
#    committed)
#
#       README
nothing added to commit but untracked files present (use "git
                                         add" to track)

Git hat entdeckt, dass es eine Datei gibt, die noch nicht von Git verwaltet wird, und führt diese im Abschnitt Untracked files auf.


  

You are currently reading a PREVIEW of this book.

                                                                                        

Get instant access to over
$1 million worth of books and videos.

  

Start a Free Trial