Today, over 73 million software engineers around the globe use GitHub. While GitHub provides many benefits, including project management, open sour...
For further actions, you may consider blocking this person and/or reporting abuse
I wouldn't use GitHub if you don't use Git properly. I'd rather use Dropbox, Drive, an HDD or even OneDrive.
This post is not incompatible with that flow, assuming you use GitHub it's quite likely you will eventually start using the
gh
cli command. Going back to the terminal, using only GitHub, one can backup all personal, org, or someone else's repos using the following script:The above code clones the code with all its history, but manipulating the
gh
line one can fine tune that based on preferences, cloud provider, etc.Don't forget to change the username!
Just a small suggestion: you can rewrite this to have the command directly in the loop.
Also using
whoami
in the assumption that your linux username is the same as your github username :DI like the one-line improvement but the username is definitely not a given for a lot of people :D
Yep, that's just a suggestion for cases where it's the same; my username is the same everywhere so for me this would work :D
Thanks for seeing my point of view @0vortex !!! Also wow, I just tried out your script..pretty cool 😎
awlays welcome! it feels like the gh cli is the natural bridge between the desktop experience and full time terminal usage :D
Wow! That script is great. I will start using it in GCP or my machine, probably. Thanks dude!
no worries, glad it helps you!
Thanks for your feedback and your perspective.
This blog post is based on my perspective and advice as someone who works at GitHub and teaches a group of people web development skills twice a year. Before we dive into Git and the terminal, I found that it's helpful to introduce them to GitHub via a GUI because they get to understand the difference concepts such as (push, pull, commit).
Then, when they learn Git they have more context around the workflow and commands.
Oh! That's an interesting point of view. Yes, I agree.
How are you doing it ??
I use Dropbox box all the time. I keep most of my work there.
Even though I have a GitHub act. I feel like if my computer goes down (and they really shouldn't) I will have a record for backing up all my little piddly tasks. haha
Whatever works to ease your mind and help you get the job done! 😀 The only hard part about saving in Dropbox is it doesn’t really allow you to revert commits as easily or see who wrote each line of code besides yourself..but I guess you’re probably doing this for personal projects and you’re copying and pasting each version of your code!
Really useful post, thanks! I'm the software engineer in a project involving scientists. They're the experts when it comes to the algorithms they want to use and the scientific results they're looking for. I develop everything else.
I never leave the terminal, but they are not comfortable in that environment. I'm always looking for better ways we can work together, and before reading this I only knew GitHub desktop.
Thanks!
Awesome! I'm glad this post is useful to you and your project team. Also, it's quite validating to know that there ARE people who are collaborating with code, but don't feel comfortable working in the terminal.
Useful information. Thanks
Glad that you found it useful!