Ravindra BagaleCourses & study guides मराठी

Ravi Sir's Cards › DevOps

Chapter 3: Branch, Merge, Rebase, Stash and Pull Requests: मराठी Cards

English cards · Chapter उघडा

उजळणी (Revision) cards

Branches का. दोन लोक एकाच वेळी same code बदलतात तेव्हा एकमेकांचं काम तोडतात.
उजळणी (Revision) card 1 of 15: Branches का · PNG download करा · Card page उघडा

Lesson: 3.1 Why branches — two developers, one shared app

Branch: बनवा, बदला, list, delete. Tasks मध्ये पटकन फिरता यायला हवं आणि branches नीट ठेवायला हव्या.
उजळणी (Revision) card 2 of 15: Branch: बनवा, बदला, list, delete · PNG download करा · Card page उघडा

Lesson: 3.2 branch, switch, list, delete

Feature branch workflow: रोजचा loop. कुणी main तोडू नये म्हणून teams ना एक सोपी सवय लागते.
उजळणी (Revision) card 3 of 15: Feature branch workflow: रोजचा loop · PNG download करा · Card page उघडा

Lesson: 3.3 Feature-branch workflow (the daily loop)

Git fetch vs pull vs push. Git code ची एक copy तुमच्या PC वर आणि एक GitHub (online) वर ठेवतो. त्या जुन्या होतात, म्हणून sync करायच्या.
उजळणी (Revision) card 4 of 15: Git fetch vs pull vs push · PNG download करा · Card page उघडा

Lesson: 3.4 Fetch vs pull vs push

Fork, upstream आणि pull request. दुसऱ्याच्या repo ला थेट push करता येत नाही.
उजळणी (Revision) card 5 of 15: Fork, upstream आणि pull request · PNG download करा · Card page उघडा

Lesson: 3.5 Fork, upstream, and the pull request

Merge: fast-forward आणि merge commit. Merge चालवण्याआधी तो history ला काय करेल ते माहीत हवं.
उजळणी (Revision) card 6 of 15: Merge: fast-forward आणि merge commit · PNG download करा · Card page उघडा

Lesson: 3.6 Merge — fast-forward and a merge commit

Conflict, line by line. Same line वरच्या दोन edits पैकी बरोबर कुठला ते Git ठरवू शकत नाही.
उजळणी (Revision) card 7 of 15: Conflict, line by line · PNG download करा · Card page उघडा

Lesson: 3.7 A conflict, line by line

Rebase: कधी safe, कधी merge करा. गोंधळलेली history वाचायला अवघड, पण shared history rewrite केली तर teammates चं तुटतं.
उजळणी (Revision) card 8 of 15: Rebase: कधी safe, कधी merge करा · PNG download करा · Card page उघडा

Lesson: 3.8 Rebase when it is safe — and when to merge instead

Stash: अर्धवट काम बाजूला ठेवा. कधी आत्ताच branch बदलावी लागते, पण काम commit करण्याइतकं तयार नसतं.
उजळणी (Revision) card 9 of 15: Stash: अर्धवट काम बाजूला ठेवा · PNG download करा · Card page उघडा

Lesson: 3.9 Stash — park the unfinished edit

एक commit cherry-pick करा. कधी पूर्ण branch नाही, फक्त एक fix लागतो.
उजळणी (Revision) card 10 of 15: एक commit cherry-pick करा · PNG download करा · Card page उघडा

Lesson: 3.10 Cherry-pick one commit

Reset: soft, mixed आणि hard. Commits undo करावेसे वाटतील, पण काही undo काम घालवतात.
उजळणी (Revision) card 11 of 15: Reset: soft, mixed आणि hard · PNG download करा · Card page उघडा

Lesson: 3.11 reset --soft, --mixed and --hard

log --graph, diff आणि show. Merge किंवा fix करण्याआधी काय झालं ते बघायलाच हवं.
उजळणी (Revision) card 12 of 15: log --graph, diff आणि show · PNG download करा · Card page उघडा

Lesson: 3.12 log --graph, diff and show

Annotated tags. प्रत्येक release च्या नक्की code ला teams ना ठरलेलं नाव हवं.
उजळणी (Revision) card 13 of 15: Annotated tags · PNG download करा · Card page उघडा

Lesson: 3.13 Annotated tags

Pull request च्या नेहमीच्या चुका. मोठे अस्पष्ट PRs हळू review होतात आणि bugs लपवतात.
उजळणी (Revision) card 14 of 15: Pull request च्या नेहमीच्या चुका · PNG download करा · Card page उघडा

Lesson: 3.14 Common pull-request mistakes

Lab: एक conflict, एक stash. एकदा सराव करेपर्यंत conflicts आणि stash नवशिक्यांना घाबरवतात.
उजळणी (Revision) card 15 of 15: Lab: एक conflict, एक stash · PNG download करा · Card page उघडा

Lesson: 3.15 Lab — colour, one conflict, one stash

मुलाखत (Interview) cards

Teams branches का वापरतात? म्हणजे प्रत्येक task main पासून वेगळा बनतो. Main चालू राहतो, आणि review नंतर बदल जोडले जातात.
मुलाखत (Interview) card 1 of 15: Teams branches का वापरतात? · PNG download करा · Card page उघडा

Lesson: 3.1 Why branches — two developers, one shared app

नवीन branch कशी बनवता आणि तिथे जाता? git switch -c name ती बनवतो आणि तिथे नेतो. जुनी पद्धत: git checkout -b name.
मुलाखत (Interview) card 2 of 15: नवीन branch कशी बनवता आणि तिथे जाता? · PNG download करा · Card page उघडा

Lesson: 3.2 branch, switch, list, delete

तुमचा रोजचा Git workflow सांगा. Main pull, feature branch, छोटे commits, push, PR, checks pass, merge, branch delete.
मुलाखत (Interview) card 3 of 15: तुमचा रोजचा Git workflow सांगा. · PNG download करा · Card page उघडा

Lesson: 3.3 Feature-branch workflow (the daily loop)

git fetch आणि git pull मध्ये फरक काय? fetch नवीन commits download करतो पण तुमच्या files बदलत नाही. pull = fetch + तुमच्या branch मध्ये merge.
मुलाखत (Interview) card 4 of 15: git fetch आणि git pull मध्ये फरक काय? · PNG download करा · Card page उघडा

Lesson: 3.4 Fetch vs pull vs push

Fork म्हणजे काय, आणि upstream म्हणजे काय? Fork म्हणजे दुसऱ्याच्या repo ची तुमची copy. upstream म्हणजे मूळ repo चं remote नाव.
मुलाखत (Interview) card 5 of 15: Fork म्हणजे काय, आणि upstream म्हणजे काय? · PNG download करा · Card page उघडा

Lesson: 3.5 Fork, upstream, and the pull request

Fast-forward merge म्हणजे काय? Main वर नवीन commits नसतील तर Git फक्त main पुढे सरकवतो तुमच्या branch च्या टोकापर्यंत. Merge commit नाही.
मुलाखत (Interview) card 6 of 15: Fast-forward merge म्हणजे काय? · PNG download करा · Card page उघडा

Lesson: 3.6 Merge — fast-forward and a merge commit

Merge conflict कसा सोडवता? File उघडा, बरोबर text निवडा, markers काढा, git add, commit. मग tests चालवा.
मुलाखत (Interview) card 7 of 15: Merge conflict कसा सोडवता? · PNG download करा · Card page उघडा

Lesson: 3.7 A conflict, line by line

Git merge vs rebase: कुठला वापरता, आणि कधी? Git code बदलांची history commits म्हणून ठेवतो. Main branch चे बदल तुमच्या branch मध्ये आणायला:Merge दोन histories जोडतो आणि एक extra “merge commit” add करतो.Rebase तुमचे commits ताज्या main च्या वर परत लावतो, म्हणजे history एक सरळ line.
मुलाखत (Interview) card 8 of 15: Git merge vs rebase: कुठला वापरता, आणि कधी? · PNG download करा · Card page उघडा

Lesson: 3.8 Rebase when it is safe — and when to merge instead

git stash कधी वापरता? आत्ताच branch बदलायची असेल पण काम commit करण्याइतकं तयार नसेल तेव्हा. Stash save करतो; pop परत आणतो.
मुलाखत (Interview) card 9 of 15: git stash कधी वापरता? · PNG download करा · Card page उघडा

Lesson: 3.9 Stash — park the unfinished edit

Cherry-pick कशासाठी वापरतात? एक commit दुसऱ्या branch वर copy करायला, जसं release branch वर hotfix.
मुलाखत (Interview) card 10 of 15: Cherry-pick कशासाठी वापरतात? · PNG download करा · Card page उघडा

Lesson: 3.10 Cherry-pick one commit

git reset --soft, --mixed आणि --hard समजवा. सगळे branch मागे नेतात. soft: बदल staged राहतात. mixed: बदल राहतात, unstaged. hard: बदल delete.
मुलाखत (Interview) card 11 of 15: git reset --soft, --mixed आणि --hard समजवा. · PNG download करा · Card page उघडा

Lesson: 3.11 reset --soft, --mixed and --hard

Commit मध्ये काय बदललं ते कसं बघता? एका commit साठी git show COMMIT, current बदलांसाठी git diff, history साठी git log --graph.
मुलाखत (Interview) card 12 of 15: Commit मध्ये काय बदललं ते कसं बघता? · PNG download करा · Card page उघडा

Lesson: 3.12 log --graph, diff and show

Releases साठी annotated tags का? ते author, date आणि message ठेवतात, आणि release चा नक्की commit mark करतात.
मुलाखत (Interview) card 13 of 15: Releases साठी annotated tags का? · PNG download करा · Card page उघडा

Lesson: 3.13 Annotated tags

चांगला pull request कसा असतो? छोटा, एक task, स्पष्ट title आणि description (काय, का, कसं test केलं), आणि green checks.
मुलाखत (Interview) card 14 of 15: चांगला pull request कसा असतो? · PNG download करा · Card page उघडा

Lesson: 3.14 Common pull-request mistakes

तुम्ही स्वतः conflict सोडवला आणि stash वापरलाय का? हो: दोन branches ने same line edit केली, merge केलं, conflict fix केला, आणि stash आणि pop चा सराव केला.
मुलाखत (Interview) card 15 of 15: तुम्ही स्वतः conflict सोडवला आणि stash वापरलाय का? · PNG download करा · Card page उघडा

Lesson: 3.15 Lab — colour, one conflict, one stash

तुलना (Comparison) cards

Merge vs Rebase. एका branch मधले बदल दुसऱ्यात आणायच्या दोन पद्धती.Merge: merge commit ने histories जोडतो.Rebase: तुमचे commits वर परत लावतो.
तुलना (Comparison) card 1 of 3: Merge vs Rebase · PNG download करा · Card page उघडा

Lesson: 3.6 Merge — fast-forward and a merge commit

git reset vs git revert. reset: branch मागे नेतो, commits काढतो.revert: जुना commit undo करणारा नवीन commit add करतो.
तुलना (Comparison) card 2 of 3: git reset vs git revert · PNG download करा · Card page उघडा

Lesson: 3.11 reset --soft, --mixed and --hard

git stash vs WIP commit. Stash: बदल लपलेल्या कप्प्यात.WIP commit: अर्धवट काम branch वर commit.
तुलना (Comparison) card 3 of 3: git stash vs WIP commit · PNG download करा · Card page उघडा

Lesson: 3.9 Stash — park the unfinished edit