Github setup on windows

Installing GitHub Desktop

You can install GitHub Desktop on supported Windows or macOS operating systems.

In this article

About GitHub Desktop installation

You can install GitHub Desktop on supported operating systems. If you have an account on GitHub or GitHub Enterprise, you can connect your account to GitHub Desktop. For more information about creating an account, see «Signing up for a new GitHub account» or contact your GitHub Enterprise site administrator.

If you are a network administrator, you can deploy GitHub Desktop to computers running Windows on an Active Directory-managed network by using the Windows Installer package file ( .msi ) with Group Policy or another remote installation system.

The Windows Installer package extracts the standalone installer ( .exe ) and configures Windows to install GitHub Desktop the next time a user signs in to their workstation. Users must have permissions to install GitHub Desktop in their user directory.

If a user runs the Windows Installer package for GitHub Desktop directly, to complete the installation, the user must sign out of their workstation and then sign back in.

Downloading and installing GitHub Desktop

You can install GitHub Desktop on macOS 10.10 or later.

You can install GitHub Desktop on Windows 7 64-bit or later.

Warning: You must have a 64-bit operating system to run GitHub Desktop.

  1. Visit the download page for GitHub Desktop.
  2. Click Download for Windows.

Help us make these docs great!

All GitHub docs are open source. See something that’s wrong or unclear? Submit a pull request.

GitHub Desktop

Focus on what matters instead of fighting with Git. Whether you’re new to Git or a seasoned user, GitHub Desktop simplifies your development workflow.

By downloading, you agree to the Open Source Applications Terms.

Attribute commits with collaborators easily

Quickly add co-authors to your commit. Great for pairing and excellent for sending a little love/credit to that special someone who helped fix that gnarly bug of yours. See the attribution on the history page, undo an accidental attribution, and see the co-authors on github.com

Checkout branches with pull requests and view CI statuses

See all open pull requests for your repositories and check them out as if they were a local branch, even if they’re from upstream branches or forks. See which pull requests pass commit status checks, too!

Syntax highlighted diffs

The new GitHub Desktop supports syntax highlighting when viewing diffs for a variety of different languages.

Expanded image diff support

Easily compare changed images. See the before and after, swipe or fade between the two, or look at just the changed parts.

Extensive editor & shell integrations

Open your favorite editor or shell from the app, or jump back to GitHub Desktop from your shell. GitHub Desktop is your springboard for work.

Community supported

GitHub Desktop is open source now! Check out our roadmap, contribute, and help us make collaboration even easier.

Github setup on windows

Instructions on How to Install Git

  • Open Terminal
  • Run the command sudo apt-get update
  • Run the command sudo apt-get install git or sudo apt-get install git-core
  • Run git —version to check the version of git installed and verify installation
  • Right-Click on My Computer/This PC and Click on Properties
  • Check the architecture of your operating system (32 bit or 64 bit)
  • Visit Git SCM Windows and download Git for Windows Setup file (your download might automatically start) for your version of opearting system
  • Double-Click the Setup file (.exe) and proceed with the installation
  • Use all default settings/options while proceeding and do not change any settings
  • Do not install any existing software if prompted (Eg: Visual Studio Code)
  • Open Command Prompt
  • Run git —version to check the version of git installed and verify installation
  • Visit Git SCM Mac and download Git for Mac Setup file (your download might automatically start). You should receive a file with .dmg or .pkg extension
  • Double-Click the Installer file (.dmg) and proceed with the installation
  • Use all default settings/options while proceeding and do not change any settings
  • Do not install any existing software if prompted (Eg: Visual Studio Code)
  • Open Terminal
  • Run git —version to check the version of git installed and verify installation
Читайте также:  Чем открыть cdr windows 10

GitHub CLI Installation

gh is available via Homebrew and MacPorts.

Install: brew install github/gh/gh

Upgrade: brew upgrade gh

Install: sudo port install gh

Upgrade: sudo port selfupdate && sudo port upgrade gh

gh is available via [scoop][], [Chocolatey][], and as downloadable MSI.

Upgrade: scoop update gh

Install and upgrade:

  1. Download the .deb file from the [releases page][]
  2. sudo apt install ./gh_*_linux_amd64.deb install the downloaded file

Install and upgrade:

  1. Download the .rpm file from the [releases page][]
  2. sudo dnf install gh_*_linux_amd64.rpm install the downloaded file

Install and upgrade:

  1. Download the .rpm file from the [releases page][]
  2. sudo yum localinstall gh_*_linux_amd64.rpm install the downloaded file

Install and upgrade:

  1. Download the .rpm file from the [releases page][]
  2. sudo zypper in gh_*_linux_amd64.rpm install the downloaded file

Instructions for GitHub

  • Visit GitHub
  • Click on Sign Up and fill in relevant details
  • Note: Pick a username that represents you or that sounds professional. Remember that this is permanent and it is not recommended to change this
  • Be sure to remember your email that you have used, your username and password

About

Instructions on How To Install Git and Setup GitHub

Creating your first repository using GitHub Desktop

You can use GitHub Desktop to create and manage a Git repository without using the command line.

In this article

Introduction

GitHub Desktop extends and simplifies your GitHub.com workflow, using a visual interface instead of text commands on the command line. By the end of this guide, you’ll have used GitHub Desktop to create a repository, make changes to the repository, and publish the changes to GitHub.

After installing GitHub Desktop and signing into GitHub or GitHub Enterprise you can create and clone a tutorial repository. The tutorial will introduce the basics of working with Git and GitHub, including installing a text editor, creating a branch, making a commit, pushing to GitHub.com, and opening a pull request. The tutorial is available if you do not have any repositories on GitHub Desktop yet.

We recommend completing the tutorial, but if you want to explore GitHub Desktop by creating a new repository, this guide will walk you through using GitHub Desktop to work on a Git repository.

Part 1: Installing GitHub Desktop and authenticating your account

You can install GitHub Desktop on any supported operating system. After you install the app, you will need to sign in and authenticate your account on GitHub or GitHub Enterprise before you can create and clone a tutorial repository.

For more information on installing and authenticating, see «Setting up GitHub Desktop.»

Part 2: Creating a new repository

If you do not have any repositories associated with GitHub Desktop, you will see a «Let’s get started!» view, where you can choose to create and clone a tutorial repository, clone an existing repository from the Internet, create a new repository, or add an existing repository from your hard drive.

Creating and cloning a tutorial repository

We recommend that you create and clone a tutorial repository as your first project to practice using GitHub Desktop.

    Click Create a tutorial repository and clone it.

Creating a new repository

If you do not wish to create and clone a tutorial repository, you can create a new repository.

    Click Create a New Repository on your Hard Drive. .

  • «Name» defines the name of your repository both locally and on GitHub.
  • «Description» is an optional field that you can use to provide more information about the purpose of your repository.
  • «Local path» sets the location of your repository on your computer. By default, GitHub Desktop creates a GitHub folder inside your Documents folder to store your repositories, but you can choose any location on your computer. Your new repository will be a folder inside the chosen location. For example, if you name your repository Tutorial , a folder named Tutorial is created inside the folder you selected for your local path. GitHub Desktop remembers your chosen location the next time you create or clone a new repository.
  • Initialize this repository with a README creates an initial commit with a README.md file. READMEs helps people understand the purpose of your project, so we recommend selecting this and filling it out with helpful information. When someone visits your repository on GitHub, the README is the first thing they’ll see as they learn about your project. For more information, see «About READMEs.»
  • The Git ignore drop-down menu lets you add a custom file to ignore specific files in your local repository that you don’t want to store in version control. If there’s a specific language or framework that you’ll be using, you can select an option from the available list. If you’re just getting started, feel free to skip this selection. For more information, see «Ignoring files.»
  • The License drop-down menu lets you add an open-source license to a LICENSE file in your repository. You don’t need to worry about adding a license right away. For more information about available open-source licenses and how to add them to your repository, see «Licensing a repository.»
Читайте также:  Как установить виртуал бокс с линуксом
  • Click Create repository.
  • Part 3: Exploring GitHub Desktop

    In the file menu at the top of the screen, you can access settings and actions that you can perform in GitHub Desktop. Most actions also have keyboard shortcuts to help you work more efficiently. For a full list of keyboard shortcuts, see «Keyboard shortcuts.»

    The GitHub Desktop menu bar

    At the top of the GitHub Desktop app, you will see a bar that shows the current state of your repository.

    Current repository shows the name of the repository you’re working on. You can click Current repository to switch to a different repository in GitHub Desktop.

    Current branch shows the name of the branch you’re working on. You can click Current branch to view all the branches in your repository, switch to a different branch, or create a new branch. Once you create pull requests in your repository, you can also view these by clicking on Current branch.

    Publish repository appears because you haven’t published your repository to GitHub yet, which you’ll do later in the next step. This section of the bar will change based on the status of your current branch and repository. Different context dependent actions will be available that let you exchange data between your local and remote repositories.

    Changes and History

    In the left sidebar, you’ll find the Changes and History views.

    The Changes view shows changes you’ve made to files in your current branch but haven’t committed to your local repository. At the bottom, there is a box with «Summary» and «Description» text boxes and a Commit to BRANCH button. This is where you’ll commit new changes. The Commit to BRANCH button is dynamic and will display which branch you’re committing your changes to.

    The History view shows the previous commits on the current branch of your repository. You should see an «Initial commit» that was created by GitHub Desktop when you created your repository. To the right of the commit, depending on the options you selected while creating your repository, you may see .gitattributes, .gitignore, LICENSE, or README files. You can click each file to see a diff for that file, which is the changes made to the file in that commit. The diff only shows the parts of the file that have changed, not the entire contents of the file.

    Part 4: Publishing your repository to GitHub

    When you create a new repository, it only exists on your computer and you are the only one who can access the repository. You can publish your repository to GitHub to keep it synchronized across multiple computers and allow other people to access it. To publish your repository, push your local changes to GitHub.

    Читайте также:  Amd chipset driver linux

    Click Publish repository in the menu bar.

    • GitHub Desktop automatically fills the «Name» and «Description» fields with the information you entered when you created the repository.
    • Keep this code private lets you control who can view your project. If you leave this option unselected, other users on GitHub will be able to view your code. If you select this option, your code will not be publicly available.
    • The Organization drop-down menu, if present, lets you publish your repository to a specific organization that you belong to on GitHub.

    Click the Publish Repository button.

    You can access the repository on GitHub.com from within GitHub Desktop. In the file menu, click Repository, then click View on GitHub. This will take you directly to the repository in your default browser.

    Part 5: Making, committing, and pushing changes

    Now that you’ve created and published your repository, you’re ready to make changes to your project and start crafting your first commit to your repository.

    To launch your external editor from within GitHub Desktop, click Repository, then click Open in EDITOR. For more information, see «Configuring a default editor.»

    Make some changes to the README.md file that you previously created. You can add information that describes your project, like what it does and why it is useful. When you are satisfied with your changes, save them in your text editor.

    In GitHub Desktop, navigate to the Changes view. In the file list, you should see your README.md. The checkmark to the left of the README.md file indicates that the changes you’ve made to the file will be part of the commit you make. In the future, you might make changes to multiple files but only want to commit the changes you’ve made to some of the files. If you click the checkmark next to a file, that file will not be included in the commit.

    At the bottom of the Changes list, enter a commit message. To the right of your profile picture, type a short description of the commit. Since we’re changing the README.md file, «Add information about purpose of project» would be a good commit summary. Below the summary, you’ll see a «Description» text field where you can type a longer description of the changes in the commit, which is helpful when looking back at the history of a project and understanding why changes were made. Since you’re making a basic update of a README.md file, you can skip the description.

    Click Commit to BRANCH NAME. The commit button shows your current branch so you can be sure to commit to the branch you want.

    To push your changes to the remote repository on GitHub, click Push origin.

    • The Push origin button is the same one that you clicked to publish your repository to GitHub. This button changes contextually based on where you are at in the Git workflow. It should now say Push origin with a 1 next to it, indicating that there is one commit that has not been pushed up to GitHub.
    • The «origin» in Push origin means that you are pushing changes to the remote called origin , which in this case is your project’s repository on GitHub.com. Until you push any new commits to GitHub, there will be differences between your project’s repository on your computer and your project’s repository on GitHub.com. This allows you to work locally and only push your changes to GitHub.com when you’re ready.
    1. In the window to the right of the Changes view, you’ll see suggestions for actions you can do next. To open the repository on GitHub in your browser, click View on GitHub.

      Conclusion

      You’ve now created a repository, published the repository to GitHub, made a commit, and pushed your changes to GitHub. You can follow this same workflow when contributing to other projects that you create or collaborate on.

    Оцените статью