Honestly: I hate git #23675
-
I have written a small script. Because of trouble using git because I was not able to upload the offline files to the new empty online repository I have uploaded the files via the Github page last night in the online new created repository. Now I fail to add / upload changes I’ve made offline. Currently I have no clue how to handle it. I’ve tried “git rebase” and now “git init”.
Bernd in his coding cabinet staring at a pale green glowing screen, mumbeling: Better than trying to understand that git / Github mess currently seems for me
Git and Githib do make more stress than coding a MB application. It’s a mess, absolutly overcomplicated. Loudly finally he says: How can I upload the changed files with git to Github? Mumbling again: And where is a caffeine drink? |
Beta Was this translation helpful? Give feedback.
Replies: 7 comments
-
You shot yourself in the foot by re-initializing the local copy of the repo. Your six steps seem fine. |
Beta Was this translation helpful? Give feedback.
-
Hi @BerndStorck! I feel you. Git honestly has a pretty steep learning curve which can be extremely frustrating. Once you get your workflow down though, it gets a lot easier. As @kingthorin said, your steps for getting back into the flow seem good. There are other ways to troubleshoot issues and such but sometimes just starting clean from scratch with your local repository is just the easiest way of going about things. When you need to sync your local repository with your remote repository before making changes to your code, run git fetch which updates your branches. Have you taken a look at the GitHub Guides? The Understanding the GitHub Flow guide and the Hello World guide are ones that helped me a lot when I was first getting started learning Git. I think they do a decent job of breaking down the fundamental concepts. Hope that helps! |
Beta Was this translation helpful? Give feedback.
-
Hi @that-pat, hi @kingthorin! Thanks for your both answers. :slight_smile: I’ve done it with the 6 steps above, and it has worked. @that-pat: I plan to buy and read a book about git, but in the last time my days are consumed by grooving my abilities and knowledge in programming Bash scripts. One of the last steps is sometimes to publish a script at Github after I’ve coded and tested the script for a while. At this point I mostly need rather sleep than – in those moments to me – a little bit prissy appearing tool named git. 😉 I will look at the linked learning resources (again) and study them. Thanks for your friendly answers!For German speaking linux friends, it might be not bad to visit: https://www.facebook.com/BStLinux There I discuss and share issues about Linux and Bash Scripting. |
Beta Was this translation helpful? Give feedback.
-
I just use SmartGit. I only deal with the command line version for occasional weird cases that it can’t handle. |
Beta Was this translation helpful? Give feedback.
-
I’d recommend reading this free book: https://github.com/pluralsight/git-internals-pdf For me, that was exactly what took all the guessing away. I understand git now from the inside and what to do, when and how. Short and easy read. |
Beta Was this translation helpful? Give feedback.
-
GitKraken is by far the best Git client I have used, I highly recommend it. I haven’t used the Git command line in forever. It has made onboarding new devs with little to no Git experience much easier. |
Beta Was this translation helpful? Give feedback.
-
I can't commit from Xcode. It asks for an ssh key. I followed instructions on generating one and still "operation failed". There is no way to do a search on Github's home page because once you have an account, just like Facebook, it searches only in terms of your profile. |
Beta Was this translation helpful? Give feedback.
Hi @BerndStorck!
I feel you. Git honestly has a pretty steep learning curve which can be extremely frustrating. Once you get your workflow down though, it gets a lot easier.
As @kingthorin said, your steps for getting back into the flow seem good. There are other ways to troubleshoot issues and such but sometimes just starting clean from scratch with your local repository is just the easiest way of going about things.
When you need to sync your local repository with your remote repository before making changes to your code, run git fetch which updates your branches.
Have you taken a look at the GitHub Guides? The Understanding the GitHub Flow guide and the Hello World guide are ones that …