Skip to content

I started my advanteure with linux. This is what came up out of it

Notifications You must be signed in to change notification settings

RafalSladek/myLinux

Repository files navigation

myLinux

I started my advanteure with linux. This is what came up out of it

Lessons learnd

How to delete the commit history in github, after commiting some sensitive data

$ git clone git@github.com:RafalSladek/myLinux.git

Since all the commit history are in the “.git” folder, we have to remove it. So, go inside your project folder. For me the project folder is ‘myproject’.

$ cd myLinux

And delete the ‘.git folder’ with this command.

$ sudo rm .git -r

Now, let us re-initialize the repository.

$ git init
$ git remote add origin git@github.com:RafalSladek/myLinux.git
$ git remote -v

Next, let us add all our files and commit the changes.

$ git add --all
$ git commit -am 'initial commit'

Now, since we just have one commit i.e ‘initial commit’. Let us force push update to our master branch of our project repository.

$ git push -f origin master

Go and check your project repository in github, you should see only one commit.

tmux

In Jan 2016 I discovered tmux, thanks to Alex. A good documentation you will find here and a shortcuts cheet sheet

git completion

A helpfull tool for bash is git completion, which is part of bash-completion Some links which I find usefull :

Ansible

Setup

  1. Install sshpass on mac
curl -O -L https://fossies.org/linux/privat/sshpass-1.06.tar.gz && tar xvzf sshpass-1.06.tar.gz
cd sshpass-1.06
./configure
sudo make install
  1. Install ansible on mac

About

I started my advanteure with linux. This is what came up out of it

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages