Difference between revisions of "Git commit"

From wikieduonline
Jump to navigation Jump to search
Line 15: Line 15:
 
  create mode 100644 file2.txt
 
  create mode 100644 file2.txt
 
  create mode 100644 file3.txt
 
  create mode 100644 file3.txt
 
  
 
  [[git status]]
 
  [[git status]]
 
  On branch master
 
  On branch master
 
  nothing to commit, working tree clean
 
  nothing to commit, working tree clean
 +
 +
git status
 +
On branch master
 +
Untracked files:
 +
  (use "git add <file>..." to include in what will be committed)
 +
 +
file_you_forgot_to_add.txt
 +
 +
nothing added to commit but untracked files present (use "git add" to track)
  
  

Revision as of 09:18, 22 November 2020

This article is a Draft. Help us to complete it.


touch README.md
git add README.md
git commit -m "Creating README"
git push -u origin master


git commit -m "your message"
[master (root-commit) 07e1897] PATH
3 files changed, 3 insertions(+)
create mode 100644 file1.txt
create mode 100644 file2.txt
create mode 100644 file3.txt
git status
On branch master
nothing to commit, working tree clean
git status
On branch master
Untracked files:
  (use "git add <file>..." to include in what will be committed)
	file_you_forgot_to_add.txt

nothing added to commit but untracked files present (use "git add" to track)


Related terms

See also

Advertising: