A
A
asdasdqwe2022-03-15 13:35:49
git
asdasdqwe, 2022-03-15 13:35:49

Where to save unfinished code?

I don't know much about git yet. Let's say I'm developing an admin panel, the working day is over, but the admin panel is not ready yet. You don't want to push the unfinished code, if you don't push the data can be lost. Should I save everything to a flash drive? Or is there a way to push so that only I can see the commit

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vasily Bannikov, 2022-03-15
@asdasdqwe

When you make a new feature, you create a new branch specifically for it.
Push into it, even if you haven't finished yet

R
res2001, 2022-03-15
@res2001

Discover interactive rebase: git rebase -i
This command performs an interactive rebase, whereby you can manually select which commits to rebase, which ones not to rebase, which commits can be merged into one, and so on.
Those. you can commit as many intermediate commits as you want to your branch, when the feature is ready, interactively rebase the branch on itself, merge all commits into one (or make several of them), make a full comment to this commit. All.
For reference:git rebase --help

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question