Let’s Git Familiar — Part 1: Git Fundamentals

cd/users/userName/myProject
git init
Git config —global user.name ‘your user name’Git config —global user.email ‘your e-mail address’
git add index.html // adds index.html to local git repogit add *.html // adds all html files to local git repogit add . // adds all files to local git repo
git status
git rm --cached index.html // deletes index.html from git repo
git commit -m 'initial commit'
git remote add origin https://github.com/myUser/myAwesomeApp
git pull // Gets the latest snapshot from remote git repo to your                  // local repogit clone https://github.com/myUser/myAwesomeApp.git // Clones the // app to your directory

--

--

--

Software Engineer

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

The Agile Problem

OCP: The Open-Closed Principle

Debugging EV and Perl’s Signal Handlers

How to navigate to common files with just ONE command like a pro

Repository online and personal branding: how much important it is for a developer?

PARDOT MIGRATION BEST PRACTICES

Introduction to Project Bicep — The evolution of ARM Templates

In this article, we intend to implement a smart attendance system in Raspberry Pi.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
İsmail GÖK

İsmail GÖK

Software Engineer

More from Medium

A Beginners Guide to Understanding CI/CD

How I Finally Managed to Debug My Google Cloud Hosted Alexa Skill Locally

Advanced git commands for everyday use

Diagrams directly in markdown with 5 lines of code