Tag Archives: git

My dotfiles

It wasn’t until my first real full-time job that I really started using vim. I had used emacs for a few courses in college, but never really got used to it. Now that I’ve been using vim for about 3 years, I have it configured to the point that I am comfortable performing most code editing in it.

Another tool that I recently (~1 year) picked up is tmux. It is the natural alternative to screen, which I did not particularly like. I have also customized tmux to a certain point that I am comfortable doing most terminal work in it.

All linux users customize their environment to some degree, so I have decided to upload my dotfiles on github. It contains my custom settings for vim, tmux,  bash, and git. The commenting within the files is pretty sparse at the moment, but I will improve them gradually as I see fit. The repo is available on github: https://github.com/jqin/dotFiles

Here is a screenshot of my setup showcasing a vim session running under tmux through PuTTY on windows:

putty

Initializing a brand new git repo and pushing it to a remote source

Hello world! I wanted some kind of content to go along with my first post, so I decided to make a quick tutorial on starting a new GitHub repo.

GitHub is the most popular git repository hosting service on the web right now. You can create as many public repos as you want with a free account, but private repos will cost you a few dollars a month. I’m sure most git users are familiar with the most common commands ( git status, git commit , etc.) but some people like me still have to look up the commands for initializing a new remote repository. Here I am consolidating all that info to help myself and others streamline this process.

First, create a new repository on GitHub, but do not check the option to initialize the repo with a README. This is because we want the repo to be empty so we can push our local version to it.

On your local box, if this is your first time using git, you will need to set your username and email using these two commands:

Then cd into your working directory

Initialize the repo

Add the files

Make the first local commit

Finally, add the remote GitHub repo and push it out

You should now be able to view your repo on github.com!

github