Version Control
Git: Getting started
Git: Getting started
  • Introduction
    • What is version control
      • Distributed VCS
      • Summary
    • What is Git?
      • A Short History of Git
      • Under the hood
      • The Three States
    • What is GitHub?
  • Setting up Git
    • Installation
    • First time setup
    • Creating a repo
  • Basic operations
    • Recording Changes
      • Add another file
      • Modify-stage-commit
      • Modify-direct commit
      • View log
    • Undo changes
      • Restore (modified)
      • Restore (staged)
      • Amend (rare)
    • Clone repos
  • Remote Repos
    • Configure remote
    • Push to remote
      • Push branches
  • Reference
    • My Git Tutorials
    • Git Official
    • Others
Powered by GitBook
On this page
  • Creating a repo
  • Create a folder of your choice and open it in terminal
  • Create a file called hello.txt with the following content inside the above folder and save it
  • Configure your File Explorer to see hidden files as well
  • Initialize the repository
  • We can now see the git repository created in the above folder
  1. Setting up Git

Creating a repo

PreviousFirst time setupNextRecording Changes

Last updated 2 years ago

Creating a repo

Create a folder of your choice and open it in terminal

Create a file called hello.txt with the following content inside the above folder and save it

Configure your File Explorer to see hidden files as well

Initialize the repository

git init
Initialized empty Git repository in C:/Users/ravi_/source/repos/Experiments/GitExperiments/FirstDemo/.git/

We can now see the git repository created in the above folder