I'm currently trying to learn Python using the excellent resources at https://learnpythonthehardway.org/book/ and, in a move that I'm sure would enrage the author, I want to use Microsoft's Visual Studio Code as my editor. The reasons for this are mainly that a. I actually quite like it and b. I already use it for a number of other projects. If you haven't already then I suggest checking it out by downloading it here.
When I'm developing or learning new stuff I tend to find myself moving between a variety of systems in different locations including but not limited to an iMac, a MacBook, a Windows desktop and a Linux laptop as well as a few other bits and pieces. This is another reason I went with Code - it works the same across all my platforms. One thing that annoys me is when I have been working on one machine and want to seamlessly pick up on another with everything nicely synced. Some time ago, due to wanting to answer the needs of both version control and centralised storage of in-progress code, I settled on using GitHub. So, to make everything happy I wanted to get GitHub and Code talking nicely. Below is the simplest method I have found to get that working.
When I'm developing or learning new stuff I tend to find myself moving between a variety of systems in different locations including but not limited to an iMac, a MacBook, a Windows desktop and a Linux laptop as well as a few other bits and pieces. This is another reason I went with Code - it works the same across all my platforms. One thing that annoys me is when I have been working on one machine and want to seamlessly pick up on another with everything nicely synced. Some time ago, due to wanting to answer the needs of both version control and centralised storage of in-progress code, I settled on using GitHub. So, to make everything happy I wanted to get GitHub and Code talking nicely. Below is the simplest method I have found to get that working.
- Visit Github and log in
- As appropriate either create a new repository or go to one you already have in progress
- Select 'Clone' and then copy the URL to your clipboard
- On your computer open a terminal window and navigate to where you want to store your project on the local machine
- Enter the command 'git clone ' and paste in the URL you copied in step 3
- Open Code and open the folder that you just created in step 5
- At this point you will see all your files and Code will have picked up that you are using Git. You will have access to Push, Pull, etc in the VC window which is all nicely linked up to GitHub
Comments
Post a Comment