Skip to content

Git/Github Guide Wiki Proposal #43

Open
@Prakhargarg-2010196

Description

@Prakhargarg-2010196

Have you read the contributing guidelines for proposing a wiki?

  • I have read the contributing guidelines.

What's this proposal about? What should this wiki cover? Who's the audience?

This proposal can be split into two formats (shall be decided which to be used stating both for reference)

Flows to choose from

  1. First Flow
    We can create one wiki containing the basics and advanced of git workflows with some resources in place to point where people can learn more.

  2. Second Flow
    We can create two separate wikis
    i.) basic git wiki containing basic workflows along with a faq section regarding some footnotes mentioned in the aforementioned.
    ii.) advanced git wiki containing the advanced workflows (later more can be added here)

For Basic workflows of git

Intended Audience : Complete beginners

  1. Setup git (show for all three types of machine windows,linux and mac)
  2. Create repository using local git and then add files to staging area and then commit your changes.
  3. Create connection of local git repository -> to a repository present on github(later can add for bit-bucket and other providers aswell)
  4. Basic flow of how to push the changes from local git repository to online repository
  5. Git pull command and fetch command . also their use-case as well as difference with example on our test repository.
  6. How to get log of the commits(git log) you have done and the status of the current branch? (git status)

Advanced Gitflows

Intended Audience : Intermediate and advanced.

Branching (branch and checkout)

  1. How to create branches in git
  2. How to switch from one branch to another.
  3. How to fetch the branch changes and how to pull them.
  4. How to delete the branch you have created both from local as well as online (git push -d as well as git branch -d also other methods to delete the branch or prune it)

Merging techniques

  1. How to merge code from one branch to another ?
    i.direct using the merge
    ii.rebasing.
  2. How to deal with git merge conflicts what are they and methods to cope with them.

Stashing and Going back in history things

  1. Usage of git stash command
  2. How to get better logs from git ?
  3. How to reset the commit without removing the commited changes (git reset --soft)
  4. how to reset the commit with removing the committed changes (git reset --hard) (>should most of the times avoided)
  5. how to revert the changes so that it would not remove the complete error from our history?

FAQ section (can be split afterwards and would contain mostly config things and theory topics in depth)

Git Branching Flows

  1. Git flow
  2. Trunk Based Flows and so on.

How to setup SSH

Choose the category for this wiki

Community Guide

If this is a FAQ on the sub, please include links of similar posts from the subreddit

No response

Are you interested in authoring this wiki guide?

Yes

Code of Conduct

  • I agree to follow the community's Code of Conduct

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions