10

I still don’t understand git completely ,sometimes the error messages are so hard to understand I just make a new repository and push all my new updates there using GitHub desktop.

Comments
  • 2
    I do that as well.
  • 7
    Error messages?
    Other then having a corrupt .git/ I can't say I've had much issue overall.
  • 7
    I was intimidated at first too but realized I just kept using the same commands over and over again. My previous company used SVN and a UI for that. I had experience with git but it was a long time ago, like 2014, for my personal projects so I had forgotten most of it. I have a great memory.

    These days, I just use the following on repeat and never had problems:

    git clone <URL>
    git checkout -b <name> origin/<branch name>
    git pull origin <branch name>
    git add <file>
    git commit -m "shit" -m "description of my shit"
    git push origin <branch name>

    Also:
    git branch
    git status
    git log

    As long as you pull before you try to push anything, you won't get problems. That's based on my noob experience though, others may have a different experience.
  • 7
    @rutee07 You forgot merge and stash / stash apply but yea that's basically my typical list.
    Reflog is things go seriously wrong and reset HEAD when it's been a bad day.
  • 2
    @C0D4 Ah, yes, reset HEAD. I had to use it once and it was.. not a good day.
  • 2
    git kraken is a easy to use git gui
    www.gitkraken.com
  • 1
    @heyheni will check this out
  • 2
    @rutee07 sure, when you don't know how to deal with that, giving head is always an option. ^^
  • 2
    @Fast-Nop Blowjobs and decapitation can make a bad day go away. 🍎
  • 2
Your Job Suck?
Get a Better Job
Add Comment