Skip to content

Instantly share code, notes, and snippets.

View wildeng's full-sized avatar

Alain Mauri wildeng

View GitHub Profile

Keybase proof

I hereby claim:

  • I am wildeng on github.
  • I am alainmauri (https://keybase.io/alainmauri) on keybase.
  • I have a public key ASAfkBM0S_eL5QZC0hqxRVPCAQiBz5_V04bA66KqoVwbYgo

To claim this, I am signing this object:

@wildeng
wildeng / Dockerfile-dev
Last active December 22, 2021 09:07
Dockerfile and docker-compose for Rails Development
ARG RUBY_VERSION
FROM ruby:$RUBY_VERSION
ARG BUNDLER_VERSION
ARG uid
ARG gid
ARG PORT
ARG REDIS_URL
# set some env variables
@wildeng
wildeng / gist:9d95eb31a5db17d5f13e9339f68496fe
Last active November 20, 2023 21:23
GIT quick Reference - WIP
GIT quick reference - WIP
A collection of tips to effectively use GIT.
Logging
# Compact log and graph
git log --oneline --graph
# Log actual changes in a file
git log -p <filename>
# Log changes not yet merged to the parent branch
git log --no-merges ,parent_branch>..
Rename a local branch
@wildeng
wildeng / adding_a_tag.txt
Last active July 20, 2019 08:37
Adding a tag
# Adding a tag to our commit
git tag -a v0.1 -m "a nice commit"
# looking for the created files we see that one more file
# has been created
find .git/objects -type f
.git/objects/51/e1acfa6ecdb46d6c9d4ad13e82b5cab90d5f3f
.git/objects/51/dcfd9bba09650f50ccad8dde3ad5fe8ba68ad2
.git/objects/53/8d4c75373bb8ebb9af381c4e8287b6f0819533
@wildeng
wildeng / git_objects_type.txt
Last active July 20, 2019 08:37
GIT saved files content
# Tree object
git cat-file -p 51e1acfa6ecdb46d6c9d4ad13e82b5cab90d5f3f
100644 blob 538d4c75373bb8ebb9af381c4e8287b6f0819533 status.txt
# Commit object: Author info, Committer info and commit message
git cat-file -p 51dcfd9bba09650f50ccad8dde3ad5fe8ba68ad2
tree 51e1acfa6ecdb46d6c9d4ad13e82b5cab90d5f3f
author wildeng <wildeng@myemail.com> 1563483367 +0100
committer wildeng <wildeng@myemail.com> 1563483367 +0100
@wildeng
wildeng / git_saved_objects.txt
Last active July 20, 2019 08:19
Object files created by GIT
find .git/objects -type f
.git/objects/51/e1acfa6ecdb46d6c9d4ad13e82b5cab90d5f3f
.git/objects/51/dcfd9bba09650f50ccad8dde3ad5fe8ba68ad2
.git/objects/53/8d4c75373bb8ebb9af381c4e8287b6f0819533
@wildeng
wildeng / create_commit_file.txt
Last active July 20, 2019 08:19
Create and commit a file
touch status.txt
# Now edit and save the file
# check the status of the repository
git status
On branch master
No commits yet
Untracked files:
@wildeng
wildeng / initialise_git_repo.txt
Last active July 20, 2019 08:18
Initialise GIT repository
git init plain_git
Initialized empty Git repository in /tmp/plain_git/.git/
cd plain_git
find .git/objects
.git/objects
.git/objects/pack
.git/objects/info