Skip to content

gasingh/gitcommands

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

24 Commits
 
 
 
 

Repository files navigation

Git Reference

COURSES

This is a collection of some nice courses, youtube lectures and weblinks which i found useful to understand the concept and workings of Git.

(0). Two courses online

(1). This is by far the best intro ever. Period. A really nice introduction for the uninitiated!

(2). A good short intro

(3). This is a video on the creator of Git and Linux

(4). This is a good series!

(5). This is way more advanced.

(6). A simple glossary by Atlassian

GIT COMMANDS

Git Commands

Git Bash Commands

CONCEPT NOTES

Further Research

I dreamt about this just before sleeping: Git it like a Cactus which grows. I googled it and there came some astonishing and interesting findings.

git is like a cactus - Google Search

STREAM 1

STREAM 2

STREAM 3

STREAM 4

STREAM 5

Further Research -2

Where is GIT located and what does it do internally?

Git On Your Computer

screenshot 1663586197 screenshot 1663586195

Git-Internals

I have often contemplated how to fix this if the system fails?! So i looked up and found something know as Git Internals.

Further Research -3

Github and other version control systems are used to actually improve the work being done and also allow for many people to build smaller pieces of functionalities and then send them back to the main piece of the bigger software as a whole. Different companies have differernt terminologies to do this!

screenshot 1663586193 - Copy

Here’s Why You’re Doing Code Review WRONG - Essential Software Engineer Skills - YouTube

RECIPES

Recipe: Make Local Repository

STEPS TO MAKE A LOCAL REPOSITORY
- Step 0. Open Git Bash in that particular folder. 
- Step 1. Type git init (this will make that folder a repository)
- Step 2. Type git add . (this will add all files to the repository)
- Step 3. Type git commit -m “Initial commit msg” (all files now in the repository)
- Step 4. Type git status (you will get a msg, “On branch master nothing to commit, working tree clean” this shows your local repository is finally created)

Recipe: Push Local Repository to GitHub online

STEPS TO PUSH A LOCAL REPOSITORY TO A GITHUB REPOSITORY ONLINE
- Step 0. Open your GitHub profile and create a New Repository. 
- Step 1. Copy the SSH Key of that created repository.
- Step 2. Open Git Bash in that particular folder that you want to push. Type git remote add origin PASTE_SSH_KEY_OF_CREATED_REPO. Then type git push origin master –force (type ‘main’ in place of the ‘master’ if your default branch is master)
- Step 3. Now, refresh your Github page, you will be able to see your committed folders/files there.

References

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published