• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
Gokul Deepak

Gokul Deepak

GoCool and Debug

  • Home
  • Terraform
  • WordPress
  • Android
  • How to
  • About Me

Git

Git Command Cheat Sheet from basic to advance

August 25, 2020 by Gokul Deepak S Leave a Comment

Here Let me use this page as git command cheat sheet.

Git global setup

git config --global user.name "Administrator"
git config --global user.email "[email protected]"

Create a new repository

git clone http://192.168.2.151:8081/root/test1.git
cd test1
touch README.md
git add README.md
git commit -m "add README"
git push -u origin master

Push an existing folder

cd existing_folder
git init
git remote add origin http://192.168.2.151:8081/root/test1.git
git add .
git commit -m "Initial commit"
git push -u origin master

Push an existing Git repository

cd existing_repo
git remote rename origin old-origin
git remote add origin http://192.168.2.151:8081/root/test1.git
git push -u origin --all
git push -u origin --tags

Filed Under: Git

Primary Sidebar

Popular Pages

  • Home
  • Terraform Cheat sheet
  • Learn with Gokul
  • Important Docker Commands to remember
  • CORS error in Apache Tomcat - Solved
  • How to find the date of the Facebook group it was created
  • How to remove Linux OS in Tamilnadu Government Free Laptop
  • Running crontab on AWS auto scaling group
  • Runcloud vs SiteGround Comparision
  • Strategy to prepare for Terraform Associate Exam Preparation

Archives

Categories

  • Android
  • Apache
  • AWS
  • Blogger
  • Computer Tips
  • DevOps
  • Docker
  • Earn
  • Facebook Tips
  • Git
  • Google Tips
  • Hosting
  • How to
  • Laptop Tips
  • Laptops
  • Linux
  • Mobile
  • MongoDB
  • Nginx
  • Node JS
  • Notepad++
  • PostgresQL
  • Terraform
  • Ubuntu
  • Wordpress
  • Xenforo

Tags

Android Android One AWS Bluehost Comparisions Custom ROM Elementor Facebook Genesis Genesis Sample Theme Google Drive How to Lineage OS Notes OnePlus One OwnCloud Rooting Smartphones Stock ROM Studiopress Tomcat Wordpress plugin

Copyright © 2025 ยท Maintained by GokulDeepak