Giter Club home page Giter Club logo

git-explore's Introduction

Git Explore!

A repository to play around with git and Gitub, learning along the way!

Prerequisites

Needless to mention, Git should be installed in your system.

sudo apt install git-all

Let's get right into it!

Here is a list of problems that I faced and found a workaround for!

Git repository initialised in the wrong directory

If you have mistakenly initialised your git repository in the wrong parent or root directory of the desired directroy, you can fix it without losing any logs and git status would return only renamed files.

.git in wrong root directory:

Example:

current: git-explore/inside/.git
desired: git-explore/.git

Solution:

mv .git ../
cd ../
git add inside/
git commit -a

.git in wrong parent directory:

Example:

current: git-explore/.git
desired: git-explore/inside/.git

Solution:

mv .git inside/
cd inside/
git add .
git commit -a

Credits

Writing Commit messages with both title and bodies from the CL

After the inspiration hit me, I was trying to find a way to write commit messages with bodies but I didn't want to do it separately in a proper text editor (who has the time and patience for that) and wanted to do the same from the CL itself.

Here is how you can do it!

git commit -m "Title" -m "Description"

Credits

Contributing

PRs are welcome! :)

git-explore's People

Contributors

shraddhaag avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.