“git add -p” Ответ

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,?]?
Exuberant Elk

git add

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

//to add all changed files
git add -A
DirkVuurst

git add

echo "# SpringSecurity" >> README.md
git init
git add README.md
git commit -m "first commit"
git branch -M main
git remote add origin https://github.com/dollarkid1/SpringSecurity.git
git push -u origin main
Nice Newt

Git add

git add .

git commit -m "Bug Fixed"

git push
Shadow

git add

git status
git add .
git commit -m "add address to restaurant"
F

git add

//to add file to the repository
1. git add yourFilePath

//if you want to add all file then
2. git add .
Coding Geek

Ответы похожие на “git add -p”

Вопросы похожие на “git add -p”

Больше похожих ответов на “git add -p” по Shell/Bash

Смотреть популярные ответы по языку

Смотреть другие языки программирования