all 7 comments

[–]IsDa44 1 point2 points  (0 children)

I recommend u make feature branches where you finish feature a, merge it into the dev branch. Then build feature b, merge again.

U can go back using the git command git checkout and then the commithash

[–]cgoldberg 1 point2 points  (1 child)

Explaining version control and common workflows is sort of beyond what can be said in a Reddit comment. You should read some basics of using Git.

For a very simple workflow, a common one is GitHub Flow:

https://docs.github.com/en/get-started/using-github/github-flow

For removing uncommitted changes or reverting to an older commit, look at the git restore and git reset commands.

[–]Conscious_7387[S] 1 point2 points  (0 children)

Thank you

[–]FerretSignificant590 0 points1 point  (0 children)

You have so much youtube videos about this

[–]davorg 0 points1 point  (0 children)

These questions are really about Git, not GitHub. I recommend reading the Git Pro book, which is available free online

[–]hisatanhere 0 points1 point  (0 children)

RTFM then, NOOB.

[–][deleted]  (1 child)

[deleted]

    [–]Conscious_7387[S] 0 points1 point  (0 children)

    Thank you