Difference between revisions of "Git commit"

From wikieduonline
Jump to navigation Jump to search
Line 1: Line 1:
{{Draft}}
 
 
  
 
  touch README.md
 
  touch README.md
Line 6: Line 4:
 
  git commit -m "Creating README"
 
  git commit -m "Creating README"
 
  [[git push]] -u origin master
 
  [[git push]] -u origin master
 
 
  
 
  git commit -m "your message"
 
  git commit -m "your message"
Line 48: Line 44:
 
* [[Make Local Changes and Update remote Repositories]]
 
* [[Make Local Changes and Update remote Repositories]]
 
* <code>[[git config --global --edit]]</code>
 
* <code>[[git config --global --edit]]</code>
 +
* <code>[[aws codepipeline]]</code>
  
 
== See also ==
 
== See also ==
 
* <code>[[docker container]] commit</code>
 
* <code>[[docker container]] commit</code>
 
* {{git}}
 
* {{git}}
 
  
 
[[Category:git]]
 
[[Category:git]]

Revision as of 08:52, 22 August 2021

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)
git status
On branch master
Changes to be committed:
  (use "git reset HEAD <file>..." to unstage)
 
	new_file: file_you_forgot_to_commit.txt


git commit -m "my test"
On branch master
Your branch is based on 'origin/master', but the upstream is gone.
  (use "git branch --unset-upstream" to fixup)

nothing to commit, working tree clean


Related terms

See also

Advertising: