From 4044de054483a4271326771d31931f357425fb74 Mon Sep 17 00:00:00 2001 From: Arun Theja Date: Sat, 20 May 2023 11:56:18 +0000 Subject: [PATCH] Commands --- VCS_SCM/Commands | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/VCS_SCM/Commands b/VCS_SCM/Commands index 1396721..6c612f3 100644 --- a/VCS_SCM/Commands +++ b/VCS_SCM/Commands @@ -61,10 +61,11 @@ git clone --single-branch --branch=BRANCH_NAME REMOTE_REPOSITORY_URL(HTTPS/SSH) [Commit] git commit # it will open the default text editor and ask for the commit message -git commit -a # it work for only update/modified to existing file and it commit and so it won't work for newly created files and it won't commit, it will prompt default text editor and ask for the commit message and then save and exit from the editor +git commit -a # prompt to default text editor and ask for the commit message and then save and exit from the editor +git commit -m COMMIT_MESSAGE # lets to write the commit message on the command line git commit -m "COMMIT_MESSAGE" # lets to write the commit message on the command line -git commit -am "COMMIT_MESSAGE" # it work for only update/modified to existing file and it commit and so it won't work for newly created files and it won't commit, lets to write the commit message on the command line -git commit --amend "COMMIT_MESSAGE" # it work for only update/modified to existing file and it commit and so it won't work for newly created files and it won't commit +git commit -am "COMMIT_MESSAGE" # lets to write the commit message on the command line +git commit --amend "COMMIT_MESSAGE" # [Cherry-Pick] git cherry-pick COMMIT_ID -- GitLab