Answers for "git without git add"

1

git add -p

Stage this hunk [y,n,q,a,d,s,e,?]? ?
y - stage this hunk
n - do not stage this hunk
q - quit; do not stage this hunk or any of the remaining ones
a - stage this hunk and all later hunks in the file
d - do not stage this hunk or any of the later hunks in the file
s - split the current hunk into smaller hunks
e - manually edit the current hunk
? - print help
@@ -4,7 +4,7 @@

 resources :cats
 resources :dogs
-resources :lizards, only: [:index, :create]
+resources :lizards, only: [:index, :create, :show]
 resources :ninjas
-resources :turtles, only: [:index, :create]
+resources :turtles, only: [:index, :create, :show]
 resources :xylophones
Stage this hunk [y,n,q,a,d,s,e,?]?
Posted by: Guest on January-25-2022
12

git add

//to add a single file
git add <FILE_NAME>

//to add all changed files
git add -A
Posted by: Guest on April-22-2020

Code answers related to "Shell/Bash"

Browse Popular Code Answers by Language