Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Pushing Source Code to GitHub
- Transcript
- 00:10 Before we start cross-compiling the windows QT, we need to push all the source code to our GitHub repository. We will be doing it from Windows, so we have to install the GitHub Desktop.
- 00:25 After installing, we will be working from our Ubuntu terminal which we installed in Windows. I have provided a Pastebin for all the commands in this video. Follow closely.
- 00:38 Be aware, this is a very long process. For just the 64 bit QT alone, it took 2 hours. This was mostly compiling time. It may take you longer, depending on your computer specs.
- 00:53 Right, let's get started. The first thing you need to do is to install the GitHub Desktop on your PC. This will allow you to push files to your GitHub repositories. Go to ''https://desktop.github.com'' to download.
- 01:11 Once installed, open the application. You will see some options. We will be choosing the second option. ''Clone a repository from the internet...''
- 01:28 However, before we do, we need to make sure we have a repository in our GitHub first. As you can see, I do not have any repositories yet for our coins source code. You may have already created one for you Linux binary release. In which case, use that.
- 01:48 For the purpose of this video, I will be creating a new one. We will create a repo with a README file. So, with your GitHub account open in your browser, navigate to the top right and create a new repository.
- 02:03 Name your repo. I will name mine VisionX as this is the name of the tutorial coin. I will add a description stating ''Tutorial Coin''. This should deter people from mining it. Then scroll down and check the box marked ''Initialize this repository with a README''. Click on Create repository.
- 02:25 With that done, we have a fresh repository. Now our GitHub Desktop will see this and allow it to be cloned. Head back to your Windows Desktop.
- 02:40 Now we have the full source code in our Ubuntu virtual machine. We need to move it over to our Windows Desktop. But before you do, be sure to open it up in your terminal and use the command ''make clean''. If you forget, you will be trying to push the code to GitHub with all the dependencies too. That would make your files too big.
- 03:05 There are a few ways to move your VisionX master folder to your Windows Desktop. You can compress it to a zip file and drag & drop it from your virtual machine. If that doesn't work, you can compress it and upload it to something like; Dropbox or Google Drive. Then in Windows, you can download it.
- 03:26 Once you have the master folder on your Desktop, check that it has all the files. As you can see, we have everything as before. You don't need to investigate too much. Just be sure it contains the SRC file and you are good to go.
- 03:43 If you are following this tutorial, you are using the Reden source code. You will notice a text document called ''Bitcoin_Talk_Announcement''. We should delete this. These are Reden's notes for their announcement. We don't want to push them to GitHub.
- 04:01 Once deleted, move back to your GitHub Desktop application. If this is your first time using GitHub Desktop, you will need to signin with your GitHub account. To do this, go to FILE, the OPTIONS. You will see 4 tabs. Accounts, Git, Appearance, Advanced.
- 04:24 In the Accounts tab, log in with your GitHub username and password. In the Git tab, add your username. Then save.
- 04:32 Once you are logged in, you can choose the option to clone a repository from the internet. Here you will see your recent repositories. Click on the repo and choose Clone.
- 04:45 It will then proceed to clone your repository with the README file. You can see that it is making a sub-folder called GitHub in our Documents folder. Inside that folder will be our repository called VisionX.
- 05:02 Once cloning is complete, navigate to that folder. Now we can see our repo, it only has the README file. Next we are going to go back to the desktop. We will drag drop all the files from the VisionX master folder, to the VisionX folder in the GitHub sub-folder.
- 05:31 Will both files lined up, select all in our master folder, then drag them over. When prompted, you can replace the README file.
- 05:49 Now we can return to the GitHub Desktop. You will see all the files are now registered by the program. We need to first click on ''Fetch origin''. Then, to be able to push them, we need to write a summary. This we will call ''initial commit''.
- 06:15 Then click on ''Commit to master''. Wait a while for it to process all the files. Then, once ready, in the top right click ''Push origin''. This will push all our files from that folder to our GitHub repository.
- 06:38 With that complete, we now need to go take a look at our repository. Navigate to GitHub in your browser. Refresh the browser and you will see the changes made. We now have our full source code. It has the comments to show it is our initial commit.
- 06:59 That is the end of this part. In our next video, we will install Ubuntu on Windows. And start installing dependencies, ready for cross-compiling.
Advertisement
Add Comment
Please, Sign In to add comment