Choose from over 40,000+ eBooks, AudioBooks, Courses & Podcasts now - for Free!
Search results
Welcome to GitHub. Today you will embark on an exciting new adventure: learning how to use Git and GitHub. As we move through today's materials, please keep in mind: this class is for you! Be sure to follow along, try the activities, and ask lots of questions!
- Table of Contents
Downloading and Installing Git. If you don't already have...
- Table of Contents
- INSTALLATION & GUIS
- GitHub for Mac
- SETUP
- SETUP & INIT
- STAGE & SNAPSHOT
- BRANCH & MERGE
- SHARE & UPDATE
- REWRITE HISTORY
- TEMPORARY COMMITS
- IGNORING PATTERNS
- Education
With platform specific installers for Git, GitHub also provides the ease of staying up-to-date with the latest releases of the command line tool while providing a graphical user interface for day-to-day interaction, review, and repository synchronization.
htps://mac.github.com For Linux and Solaris platforms, the latest release is available on the official Git web site.
Configuring user information used across all local repositories git config --global user.name “[firstname lastname]” set a name that is identifiable for credit when review version history git config --global user.email “[valid-email]” set an email address that will be associated with each history marker git config --global color.ui auto set automat...
Configuring user information, initializing and cloning repositories git init initialize an existing directory as a Git repository git clone [url] retrieve an entire repository from a hosted location via URL
Working with snapshots and the Git staging area git status show modified files in working directory, staged for your next commit git add [file] add a file as it looks now to your next commit (stage) git reset [file] unstage a file while retaining the changes in working directory git diff diff of what is changed but not staged git diff --staged diff...
Isolating work in branches, changing context, and integrating changes git branch list your branches. a * will appear next to the currently active branch git branch [branch-name] create a new branch at the current commit git checkout switch to another branch and check it out into your working directory git merge [branch] merge the specified branch’s...
Retrieving updates from another repository and updating local repos git log show the commit history for the currently active branch git log branchB..branchA show the commits on branchA that are not on branchB git log --follow [file] show the commits that changed file, even across renames git diff branchB...branchA show the diff of what is in branch...
Rewriting branches, updating commits and clearing history git rm [file] delete the file from project and stage the removal for commit git rebase [branch] apply any commits of current branch ahead of specified one git mv [existing-path] [new-path] change an existing file path and stage the move git reset --hard [commit] clear staging area, rewrite w...
Temporarily store modified, tracked files in order to change branches
Preventing unintentional staging or commiting of files logs/ *.notes pattern*/ Save a file with desired paterns as .gitignore with either direct string matches or wildcard globs. git config --global core.excludesfile [file] system wide ignore patern for all local repositories
Teach and learn beter, together. GitHub is free for students and teach-ers. Discounts available for other educational uses. education@github.com education.github.com
- 97KB
- 2
This is an open-source introduction to Git and GitHub guide that will help you learn the basics of version control and start using Git for your SysOps, DevOps, and Dev projects.
1. Getting Started. 1.1 About Version Control. 1.2 A Short History of Git. 1.3 What is Git? 1.4 The Command Line. 1.5 Installing Git. 1.6 First-Time Git Setup. 1.7 Getting Help. 1.8 Summary. 2. Git Basics. 2.1 Getting a Git Repository. 2.2 Recording Changes to the Repository. 2.3 Viewing the Commit History. 2.4 Undoing Things.
GitHub is a web-based Git repository hosting service, which offers all of the distributed revision control and source code management (SCM) functionality of Git as
- 397KB
- 31
Downloading and Installing Git. If you don't already have Git installed, you can download Git at www.git-scm.com. If you need additional assistance installing Git, you can find more information in the ProGit chapter on installing Git: http://git-scm.com/book/en/v2/Getting-Started-Installing-Git .
People also ask
What is Git & GitHub BASICS training?
What is Git & GitHub?
What is Git & how do I use it?
What is GitHub & how does it work?
What browsers does GitHub run on?
How do I get my GitHub repository up-to-date?
In this Git crash course, you will learn the basics of Git so you can use Git to track your code changes and collaborate with other members of your team or open source maintainers. Whether you are a newcomer to programming, or an experienced one, you have to know how to use Git.