LoveEspresso@cafe.coffee-break.cc to Ask Lemmy@lemmy.worldEnglish · 1 day agoHow to step into the world of git ?lockcafe.coffee-break.ccimagemessage-square11fedilinkarrow-up117arrow-down19
arrow-up18arrow-down1imageHow to step into the world of git ?lockcafe.coffee-break.ccLoveEspresso@cafe.coffee-break.cc to Ask Lemmy@lemmy.worldEnglish · 1 day agomessage-square11fedilink
minus-squareDreamButt@lemmy.worldlinkfedilinkEnglisharrow-up4·edit-21 day agoBasic workflow that got me through the learning pains. If I just sat down: git checkout develop or whatever ur main branch is git pull origin If I’m working on a new branch: (If not already on the new branch) git branch -b feature/123-ticket-name (After making some changes) git add . git commit git push Git will prompt you the first time you git push, just follow the instructions. And of course there’s tons more you could learn or dive into. But that should give you a stable foundation to start working from
minus-squareNocturnalMorning@lemmy.worldlinkfedilinkarrow-up2·1 day agoYou’d be surprised how many people use git without knowing even the basics. I’ve had a surpising amount of coworkers who have come to me for an issue that I literally googled for them to just give them the answer.
Basic workflow that got me through the learning pains.
If I just sat down:
git checkout developor whatever ur main branch isgit pull originIf I’m working on a new branch:
(If not already on the new branch)
git branch -b feature/123-ticket-name(After making some changes)
git add .git commitgit pushGit will prompt you the first time you git push, just follow the instructions.
And of course there’s tons more you could learn or dive into. But that should give you a stable foundation to start working from
You’d be surprised how many people use git without knowing even the basics.
I’ve had a surpising amount of coworkers who have come to me for an issue that I literally googled for them to just give them the answer.