cisco-ie / ie-git-guide

Innovation Edge's Git Guide: Zero to :100:
https://cisco-ie.github.io/ie-git-guide/
2 stars 0 forks source link
beginner git github practices

Innovation Edge's Git Guide: Zero to 100

This guide is to provide newcomers with a brief set of readings to develop a general understanding of Git and our current Git strategy in place. Thus, by no means is this a comprehensive guide to Git, but a means to be effective when getting started with Git.

Required Readings

Git Introduction

Git Strategies

This will be our branching strategy, which is widely used among popular GitHub OOS projects. In addition, it's rather simple, yet flexible. Even better, it's pure bliss with continuous delivery and CI.

Once you review the articles above, you'll be wondering how does this fit inline with us? Well, the diagram below provides a sample git history of a project spanning 2 typical sprints.

Diagram of GitHub Flow Revised for IE Sprints

Git Practices

A easy, yet effective practice that everyone should be following, which will make it far easier to comprehend Git histories.

Useful Things

Automated Tooling

Git Aliases

Include these alias in your shell's .rc file, and you'll have access to these useful git aliases.

alias gs='git status '
alias ga='git add '
alias gb='git branch '
alias gc='git commit'
alias gp='git pull'
alias gps='git push'
alias gpsu='git push --set-upstream origin'
alias gd='git diff'
alias got='git '
alias get='git '
alias glog='git log --graph --decorate --pretty=oneline --abbrev-commit --all --date=local'

Reference Sheets

Extra Credit

This material is not required but is still relevant.

License

CC0