• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!

Windows Use Github with Git Extensions

HalfAway

Thanatos
Joined
Sep 3, 2011
Messages
3,795
Solutions
26
Reaction score
2,612
Location
Sweden
GitHub
HalfAway
Git Extensions is a graphical user interface for Git that allows you to control Git without using the commandline.
Alot of options exists to manage a repository through Git Extensions. Such as viewing changes made in comparison to previous commit, commited logs, clone a reposityory and much more.

You can find the latest version of Git Extensions here.

Chapter Navigation
[Chapter 1] - Generate SSH keys

[Chapter 2] - Clone a repository
[Chapter 3] - Open a repository
[Chapter 4] - Commit and push
[Chapter 5] - Pulling the code
[Chapter 6] - Track changes

Time to provide some tutorials for the community, hope you'll find this one useful.
 
Last edited:
[Chapter 1] - Generate SSH keys

The SSH keys should be loaded as a one-time activity.
The keys can be generated in GIT Extensions setup, you need a SSH client.
I recommend using PuTTY which can be found here:
Download PuTTY - a free SSH and telnet client for Windows

In the top menu bar navigate to Tools and select PuTTY from the dropdown list and then choose Generate or import key.
http://************/OTLand/tutorials/Git_Extensions_OTRealm.png
Click on the Generate or import key to start the key generator.

Now you'll see this window, click on Generate to star the key generating process.
http://************/OTLand/tutorials/Generate_key.png

http://************/OTLand/tutorials/PuTTY_Key_Generator.png
The window will ask you to move the mouse around in order to generate a random key.
When the key is generated, save the public and private key by clicking on the buttons.
http://************/OTLand/tutorials/save_key.png

Now you got a two keys, provide the public key to your Github account by copying the key from the file you just saved at your desired location.

Open your browser and navigate to your Github account and click on your profile picture to open the accounts dropdown menu, then navigate to Settings.
http://************/OTLand/tutorials/github.png

In your Account's Settings click on the SSH and GPG Keys.
http://************/OTLand/tutorials/github2.png

In the top right corner of SSH and GPG Keys click on the button New SSH Key.
http://************/OTLand/tutorials/ssh_Keys.png

http://************/OTLand/tutorials/add_ssh.png

Choose a good title for this key, for example name your computer or something easy to recognize.
Now paste your public key into the key section and click Add SSH Key.

With this key, now github will know which key to use to decrypt.
Now you also need to provide the private key to Git Extensions.

Open Git Extensions and click on Clone Repository link, now a new window should show up.
http://************/OTLand/tutorials/load_private.png
Click on the Load SSH Key and load your Private Key we generated before.

Remember you only need to do this step once.
 
Last edited:
[Chapter 2] - Clone a repository

Cloning a repository will create a local copy of the repository on your computer.

Click on the Clone Repository link from the Common Actions tab to the left in Git Extensions.
http://************/OTLand/tutorials/clone_repo.png
Enter the needed information, such as Repository to clone and Destination.
In your github repository click on the button called Clone or download and click on Use SSH.
http://************/OTLand/tutorials/use_ssh.png

http://************/OTLand/tutorials/ssh_link.png

http://************/OTLand/tutorials/clone_info(1).png
Now we pasted the Repository to clone which we copied from our Github project.
Set a destination where you want the local repository to be created, in this example we place it on our Desktop.
Git Extensions will create a subdirectory named Test on our Desktop.

We can now click Clone and clone our repository.
 
Last edited:
[Chapter 3] - Open a repository

You can open a already cloned repository from the Common Actions tab in Git Extensions and navigate to your local directory.
http://************/OTLand/tutorials/open_repository.png
Once you've located the local repository click on the Open button and your repository should open.

Your repository should now be opened and all commited logs can be seen in the event window.
In the event window you can see the user who have commited, the time elapsed since the commit.
http://************/OTLand/tutorials/event_window.png
 
Last edited:
[Chapter 4] - Commit and push

In this chapter we will cover how to Commit & Push updates to your repository.
In this example we've added a file into our local repository, as you can see in the image below we got a Commit (1) which means we got one change in one file.
http://************/OTLand/tutorials/commit.png
Click on the Commit button and you should see this window.

http://************/OTLand/tutorials/commit_push.png
The box highlighted with red is the new/edited files in our local repository.
The green highlighted box is the files that will be pushed to our Github repository.

http://************/OTLand/tutorials/commit_push2.png
We selected the Test File.txt and clicked on Stage to move the file into the box that will be pushed to the Github Repository.
If you want to remove a file from the push box, select the file and click on Unstage.

In the blue highlighted box, you can view diffrence between the local and remote file.

http://************/OTLand/tutorials/push.png
Enter a commit message, to keep track of your commits.
You are now ready to push your first edit to your Github Repository, click on Commit & Push.

http://************/OTLand/tutorials/pushing.png
This window should show up and the files should start to be pushed to the Git Repository.
 
Last edited:
Back
Top