Tags » Version Control

GIT - For The Absolute Beginner - Part 1

I know you’re eager to dive into the nitty-gritty of git and get your hands dirty with some shell commands, me too. But before we get into the meat of the work, it would be meet (pun intended) for us to understand what version control is, and how exactly git fits into the concept. 777 more words

Bolorunduro Winner-Timothy

Menggunakan Git dan Github untuk belajar coding dan mengerjakan project

Halo kawan ! Kali ini saya akan membagi sedikit pengalaman saya saat belajar Git & Github. Buat teman-teman yang belum tahu, Git merupakan suatu version control yang dapat membantu kita membuat rekam jejak saat koding. 742 more words

Git

Learn how to version control with Git & Github

Version control is important to developers in any fields of computer science, especially on big projects with tons of codes. On that case, you can save a lot of time when you encounter problems when coding a new version by saving and enabling yourself to review old version and find out where the problem is at. 123 more words

Online Courses

How to checkout subdirectory in a git repository

To checkout a subdirectory in a Git repository using sparse-checkout, follow these instructions

git remote add -f origin https://github.com/whoever/whatever.git
git config core.sparsecheckout true
echo /path/to/subdirectory >> .git/info/sparse-checkout
git checkout master

Also see this StackOverflow answer.

Howto

How to sync a forked git repository?

To synchronize your forked Git repository with the upstream, follow these nice instructions on StackOverflow:

# Add the remote, call it "upstream":

git remote add upstream https://github.com/whoever/whatever.git

# Fetch all the branches of that remote into remote-tracking branches,
# such as upstream/master:

git fetch upstream

# Make sure that you're on your master branch:

git checkout master

# Rewrite your master branch so that any commits of yours that
# aren't already in upstream/master are replayed on top of that
# other branch:

git rebase upstream/master

# If you don't want to rewrite the history of your master branch,
# then you should replace the last command with the following

#git merge upstream/master

# Now push your branch to your own forked repository

git push origin master

# If you've rebased your branch onto upstream/master you may need to
# force the push in order to push it to your own forked repository

#git push -f origin master
Howto

Git Cheatsheet

Configuring Git

  • System-level configuration
    • git config —system
    • stored in /etc/gitconfig
  • User-level configuration
    • git config —global
    • stored in ~/.gitconfig
  • Repository-level configuration
    • git config
    • stored in .git/config in each repo…
  • 423 more words
Git

Git Fundamentals

History

  • First generation
    • Single file
    • No networking
    • Eg: SCCS, RCS
  • Second generation
    • Multi-file
    • Centralized
    • Eg: CVS, SVN, VSS, TFS, Perforce
  • Third generation
    • Change Sets
    • Distributed…
  • 68 more words
Git