Found 27 repositories(showing 27)
There are many good resources for learning Git. (Here's an excellent online book, and this is my videos series introducing Git and GitHub.) But once you've learned the basics, it can be hard to remember which commands to use to execute the most common tasks. I went searching for a Git reference guide that would be useful for beginners like myself, but didn't find anything ideal: Git - the simple guide is useful as a high-level overview of the basic commands, but doesn't provide enough details. Git Cheatsheet uses a nice interactive approach to summarize a ton of git commands on one screen, but it doesn't give you any sense of workflow. Git Reference is close to what I was looking for, and links each entry to the relevant section of Pro Git (awesome!), but is too long for a quick reference. So, I decided to make my own reference guide! The guide below is organized by task, with an emphasis on basic tasks and common command line arguments. It begins with the workflow for cloning, updating, and syncing with a remote repo because that's a common way to get started with Git and GitHub. Note that this is only a reference guide, and will not teach you Git. It does not explain the difference between staged and committed, what to do with a .gitignore file, or when to create a branch. But if you are already familiar with those concepts, this guide will hopefully refresh your memory and help you to discover other commands you might need. Please enjoy, and let me know your thoughts or questions in the comments! Cloning a remote repo (that you created or forked on GitHub) git clone < your-repo-URL >: copies your remote repo to your local machine (in a subdirectory with the repo's name), and automatically creates an "origin" handle git remote add upstream < forked-repo-URL >: adds an "upstream" handle for the repo you forked git remote -v: shows the handles for your remotes git remote show < handlename >: inspect a remote in detail Tracking, committing, and pushing your changes git add < name >: if untracked, start tracking a file or directory; if tracked and modified, stage it for committing git reset HEAD < name >: unstage a changed file git commit -m "message": commits everything that has been staged with a message -a -m "message": automatically stages any modified files, then commits --amend -m "new message": fixes the message from the last commit git push origin master: pushes your commits to the master branch of the origin Syncing your local repo with the upstream repo git fetch upstream: fetch the upstream and store its master branch in "upstream/master" git merge upstream/master: merge that branch into the working branch Viewing the status of your files git status: check which files have been modified and/or staged since the last commit git diff: shows the diff for files that are modified but not staged --staged: shows the diff for files that are staged but not committed Viewing the commit history git log: shows the detailed commit history -1: only shows the last 1 commit -p: shows the line diff for each commit -p --word-diff: shows the word diff for each commit --stat: shows stats instead of diff details --name-status: shows a simpler version of stat --oneline: just shows commit comments gitk: open a visual commit browser Managing branches git branch: shows a list of local branches < branchname >: create a new branch with that name -d < branchname >: delete a branch -v: show the last commit on each local branch -a: show local and remote branches -va: show the last commit on each local and remote branch --merged: list which branches are already merged into the working branch (safe to delete) --no-merged: list which branches are not merged into the working branch git checkout < branchname >: switch the HEAD pointer to a different branch -b < branchname >: create a new branch and switch to it Removing, deleting, and reverting files git rm < name >: deletes that file from the disk, then stages its deletion --cached < name >: stops tracking a file, then stages its deletion (but does not delete it from the disk) git mv < oldname > < newname >: renames the file on disk, then stages the deletion of the old name and addition of the new name git checkout -- < name >: revert a modified file on disk back to the last committed version Other basic commands git init: initialize Git in an existing directory git config --list: shows your Git configuration touch .gitignore: create an empty .gitignore file
Charakajayamith2002
This repository serves as a complete reference guide for developers who want to master Git version control and GitHub workflows. Whether you're a beginner learning your first Git commands or an experienced developer looking for a quick reference, this guide has everything you need.
NhanPhamThanh-IT
📚 This repository provides concise yet comprehensive tutorials and hands-on guides for Git, Python, R, and SQL. Discover core concepts, essential commands, and real-world code examples to strengthen your programming and data analysis skills. Perfect for beginners and a handy quick reference for daily projects.
sabbirsami
This Git Cheat Sheet is a quick reference guide for essential Git commands and operations, perfect for both beginners and experienced developers. For more detailed information, refer to the official Git documentation.
Sahil-Popat-Potale
A concise and comprehensive Git cheat sheet to help you quickly reference and use the most common and help full Git commands. This cheat sheet is perfect for beginners and experienced developers alike, offering clear examples and descriptions of essential Git operations.
masum184e
Dive into the vibrant universe of notes for various programming languages, Git, and other essential technologies. Whether you're a beginner looking to grasp the fundamentals or an experienced engineer seeking quick references, you'll find a wealth of information here.
aman0009
An ultimate guide for learning cloud in an easy way Who Uses Heroku And Why? Heroku is a Platform as a Service(PaaS) in which you can easily create free account and can start deploying your applications. Heroku allows you to deploy quickly, forget about the infrastructure, and just focus on improving your app. Heroku is also great for beginners since its free tier of service covers everything newbies need. You can deploy as many apps as you like on Heroku, so long as they’re not too large (in terms of the associated data you’re hosting) and you don’t mind the possibility that Heroku might randomly take them offline for what it calls “unscheduled downtime.” I’m currently hosting five different apps on Heroku and they are working fine without any maintainance.You can host front-end websites as well as back-end websites.It also provides command line interface through which you can easily deploy an application just in minutes. How Heroku Works When you create an app on Heroku, it deploys to the Cedar Stack, an online runtime environment that supports apps built in Java, Node.js, Scala, Clojure, Python and PHP—all the programming languages that Heroku supports. The current version of the Cedar Stack is Celadon Cedar. It supports hundreds of thousands of developer apps. When you deploy a new app, Heroku assigns it a unique name based on a natural theme, like “calm-springs3345” or “desolate-cliffs1221.” When it comes to your app, think of Heroku as home to a vast array of virtual computers, or “instances,” that can be powered up and down. Heroku calls these instances dynos; these are lightweight containers that each run a single command for your app. In my experience as a beginner building apps that only perform one action, I’ve never had more than one dyno per app. Heroku And Git One of the reasons Heroku is easy for people to use is that it relies on a widely used revision control system—that is, a way of managing the program code for your app—called Git. If you’re not already familiar with Git, you might want to review ReadWrite’s beginner tutorial for Git and GitHub. Signing Up For Heroku Interested in trying Heroku out for yourself? Signing up is easy, with one caveat. To create your Heroku account, all you need is an email and password. But if you want to do anything with your Heroku-hosted app, like take advantage of one of the many useful free addons, you need to put in a credit card number. Heroku says it’s for account verification. Though it obviously makes it easier for Heroku to tempt you with paid services as well. Create the app Go to your dashboard Select “Create new app” (top right) Name your app something (only letters, numbers, and dashes) Click “Create App” Tracking your app in git Before you can push an app to Heroku, you’ll need to initialize a local Git repository and commit your files to it. For example, if you have an app in a directory, myapp, then create a new repository for it: $ cd myapp $ git init Initialized empty Git repository in .git/ $ git add . $ git commit -m "my first commit" Created initial commit 5df2d09: my first commit 44 files changed, 8393 insertions(+), 0 deletions(-) create mode 100644 README create mode 100644 Procfile create mode 100644 app/controllers/source_file ... This is a local repository, now residing inside the .git directory. Nothing has been sent anywhere yet; you’ll need to create a remote and do a push to deploy your code to Heroku. Creating a Heroku remote Git remotes are references to remote repositories. You can have any number of these, but for now we’ll focus on just the remote to Heroku. The heroku create command creates a new application on Heroku – along with a git remote that must be used to receive your application source. $ heroku create Creating falling-wind-1624... done, stack is cedar-14 http://falling-wind-1624.herokuapp.com/ | https://git.heroku.com/falling-wind-1624.git Git remote heroku added By default, Heroku configures HTTP as the Git transport. The Heroku CLI will automatically place credentials in the .netrc file on heroku login. The Git client uses cURL when interacting with HTTP remotes, and cURL will use the credentials from the .netrc file. See the Authentication section and the CLI authentication article for details. You can verify the remote in your git configuration as well: $ git remote -v heroku https://git.heroku.com/falling-wind-1624.git (fetch) heroku https://git.heroku.com/falling-wind-1624.git (push) You can also take an existing Git repository and add a remote using the git URL provided when you created your app. You may need to do this to associate a Git repository with an existing application. The heroku git:remote command will add this remote for you based on your applications git url. $ heroku git:remote -a falling-wind-1624 Git remote heroku added. The remote is named heroku in this example, but you can name the remote anything you want by passing -r other_remote_name. You may find it easier to follow the examples if you stick to using the heroku remote rather than using one with a different name. There is one special remote name: origin, which is the default for pushes. Using origin as the remote name will allow you to type just git push instead of git push heroku, but we recommend using an explicitly named remote. Deploying code Your Heroku app starts with a blank repository – it has no branches and no code. So the first time you deploy, you’ll need to specify a remote branch to push to. You can do your first push: $ git push heroku master Initializing repository, done. updating 'refs/heads/master' ... This will push your code to the heroku remote, created earlier. Use this whenever you want to deploy the latest code committed in Git to Heroku. During the start of your first build, Initializing repository will be displayed while your app’s repository is created on Heroku. On subsequent builds, Fetching repository will be displayed while your app’s repository is fetched and prepared to accept your push. Branches pushed to Heroku other than master will be ignored by this command. If you’re working out of another branch locally, you can either merge to master before pushing, or specify that you want to push your local branch to a remote master.
skaftab-in
This repository contains step-by-step notes and commands learned during my Git training with the Bitbucket course. It serves as a quick reference guide for essential Git concepts and operations. Perfect for beginners and future troubleshooting!
deowansajal
This repository contains a comprehensive list of the most common and useful Git commands. The repo serves as a quick reference for developers of all levels, from beginners to advanced users. It includes commands for daily usage, advanced workflows, and helpful tips to enhance your Git experience.
Ayush-Butala
When I started learning Git and GitHub, I felt completely lost. So I created this cheat sheet to make things simple for myself and for anyone else who is just starting out. It’s beginner-friendly, easy to follow, and perfect for quick reference.
StevenGonzalez
A curated collection of developer cheat sheets and quick-reference guides for essential tools and workflows. Includes markdown-based guides for Git, Docker, Bash scripting, Markdown syntax, and VS Code tips. Designed to be beginner-friendly yet valuable for experienced developers seeking fast, practical insights.
akshaykarthicks
A collection of essential Git commands with explanations and examples for quick reference. Useful for beginners and developers to manage version control efficiently.
collision-hp
A concise and practical collection of essential Git commands and usage instructions for beginners and intermediate developers. Perfect for quick reference, learning, and mastering version control with Git.
Mostafizur-Pro
This Git Cheat Sheet is a quick reference guide for essential Git commands and operations, perfect for both beginners and experienced developers. For more detailed information, refer to the official Git documentation.
PranjalWorkForce
# 📘 Git Commands Cheat Sheet This repository provides a simple and practical guide to commonly used Git commands. It is designed for beginners and developers who want a quick reference for daily Git operations.
Demivian
A personal repository for organizing learning notes, quick references, and beginner-friendly guides on Markdown, Git, GitHub, and other development basics.
SLekhana
A comprehensive cheat sheet of essential macOS/Linux terminal commands and Git operations, designed for beginners and developers to quickly reference and practice key Git workflows, including branching, merging, and repository management.
AravAravind
A comprehensive guide documenting essential Git commands with explanations and examples. This repository serves as a quick reference for beginners and experienced developers to manage version control efficiently.
PanugantiMugdha
Demo for Git and Github - a collection of easy-to-understand notes covering essential Git commands, workflows, and GitHub concepts. This repository is designed for beginners who want a quick reference while learning version control.
Yadav-Ishika
Git-Commands is a comprehensive collection of Git commands with detailed explanations and their functionality. This repository serves as a quick reference for beginners and advanced users alike, helping them understand and efficiently use Git for version control. Perfect for developers looking to master Git workflows!
Rajas1010
A quick reference for essential Git commands, perfect for both beginners and experienced users. Includes easy navigation, branch management, stash handling, advanced commands, remote interaction, and downloadable code samples in Python, Java, and HTML.
pank07
DevOps Commands Cheat Sheet 🛠️ A handy collection of essential DevOps commands for learning, practicing, and quick reference — covering Docker, Kubernetes, Git, Jenkins, Linux, and more. Perfect for beginners, interview prep, and daily usage.
mewhotheboss
This repository contains essential Git and GitHub commands for everyday development workflows. It serves as a quick reference guide for beginners and anyone who needs a fast refresher, collecting fundamental commands in one place for easy learning and lookup.
batihankota
A concise and well-structured cheat sheet of the most commonly used Git commands, organized by category and purpose. This guide is designed to help developers quickly reference essential Git operations such as branching, committing, pushing, rebasing, and more. Ideal for beginners and seasoned developers alike.
msaf9
The GitHub Cheatsheet is a handy reference document that provides quick access to common Git commands and GitHub features. It's a valuable resource for both beginners and experienced users alike, offering shortcuts and tips to streamline your workflow on the platform.
satyamra1
This repository serves as a comprehensive cheat sheet for commonly used Git commands. It includes various commands for managing branches, committing changes, merging, stashing, and working with remote repositories. Whether you're a beginner or an experienced developer, this repository will help you quickly reference the Git commands.
ShadmehrBakhtiary
This repository serves as a comprehensive reference for essential Git commands, providing clear explanations and usage examples. Whether you're a beginner looking to learn the basics or an experienced developer needing a quick reminder, this guide will help streamline your Git workflow and enhance your version control skills.
All 27 repositories loaded