• Home
  • Git
  • Programming
  • Leadership
  • About

Git Fetch Victor

Git, Programming and so much more...

Get Git Going…

Written by vjpudelski on August 17, 2015

Git is the source control management software of choice by many developers. It feels very light weight and yet is a fully functional and quite easy to use tool for most developers. For those that need extra help with Git there are a ton of resources out there for you, including this article.

So, to get started you should install Git. Go to the Git website (http://git-scm.com/downloads) and download the appropriate package based on your OS. This will install the tools necessary to use Git on your local system.

Steps for Starting a repository locally:

  1. Install Git
  2. Open the command promptterminal window
  3. Change the directory to where you would like to start a repository
    you may use commands such as:
    cd <<dir>> to change the current directory
    mkdir <<dir>> to create a new directory or md in windows
  4. run git init to create the repository in the current directory.

In a case where you have an existing repository that you want to have a copy of:

Follow Steps 1-3 as stated above. In step 3 you will go to the root directory of where you want the repository since getting a copy of the repository will create a directory for the repository.

instead of git init, we will run git clone to copy or clone the remote repository.

git clone <<url>> [directory]

<<url>> – could be a URL for GitHub or Bitbucket or just a remote network path

[directory] – is an optional parameter to provide the name of the directory you will create the clone in.

In either case you will result in a local Git repo that you can begin working in. You can create projects, store files and then use your git workflow to save your changes to a remote repo.

git add

git commit

git pull

git push

 

Posted In Git | Programming
Tagged git | source control

Post navigation

PreviousSource Control, our friend in Code
NextMy Git commit isnt adding my files…

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Recent Posts

  • Leaders Eat Last
  • Java calling .NET WebAPI
  • So What Really Mattered?
  • What really matters?
  • Has It Really Been Over a Year!

Recent Comments

  • Jason King on Has It Really Been Over a Year!
  • Sarah Dutkiewicz on Changing the Past
  • Dave Balzer on Team Culture
  • Sarah Dutkiewicz on Team Culture
  • Sarah Dutkiewicz on Impostor Syndrome, my dealings…

Archives

  • April 2019
  • February 2019
  • January 2018
  • October 2017
  • September 2016
  • August 2016
  • July 2016
  • April 2016
  • March 2016
  • February 2016
  • January 2016
  • December 2015
  • August 2015
  • January 2015

Categories

  • Git
  • Leadership
  • Non-Technical
  • Personal
  • Programming
  • Raspberry Pi
  • Reviews
  • Troubleshooting
  • Unstoppable Course

Tags

aspnet aspnetcore books coaching CodeMagazine cron csharp culture dotnet dotnetcore dreams git iPhone java management nike Nozbe Raspian rsync running samba server source control SubtleArtOfNotGivingAFck teams vscode web hosting

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org
Copyright © 2025. Git Fetch Victor
Powered By WordPress and Auspicious