benchsite.blogg.se

Sourcetree discard all
Sourcetree discard all












sourcetree discard all

Create repository on account drop down: make sure it is not selected.Name: a simple name to identify your repository in SourceTree.

sourcetree discard all sourcetree discard all

  • Destination path: the location of the root folder from step 1 - in otherwords, the folder you want to version control (eg C:\Users\jon\Documents\MyProject).
  • Press the Create button, to show the Create a repository form.
  • This step adds the Git repository to the root of your project folder.
  • The location of the root folder (eg C:\Users\jon\Documents\MyProject) will be needed in Step 2.
  • This provides you with a working folder containing sub-folders and files for you to edit and version control.
  • Download and unzip to a convenient working location (eg under your Documents folder).
  • This step creates a project folder with sub-folders and files ready for the rest of the exercise. However, for the classroom exercises, please use Source Tree as shown below rather than attempting the command line, since this keeps it easier for the trainers. You can enter commands in SourceTree if you go to: Actions > Open in Terminal.

    #Sourcetree discard all how to#

    For your reference we have included this script, which shows you how to do exercise 1 entirely from the command line. However, Git can be used from the command line, and this may ultimately be your preferred option. SourceTree gives you a graphical interface to manage Git and our exercises use that interface. If you haven’t yet installed it please do so using these instructions: Note about command line SourceTree is a Git client for Windows and Mac. There are many clients for Git, in these exercises you will use SourceTree to manage Git. apply a tag to a specific version for future reference.checkout a previous version of your changes.repeatedly edit files and add your changes to Git.review the status of files in the folder.This exercise will take you through your first steps of applying version control using Git to a folder and its contents.














    Sourcetree discard all