Post #8 My Gist

Code git bash gist github

Gist overview with a refresher on Git and Bash

Scripterix Gist is a GitHub repository packed with diverse scripts and developer utilities prepared by the user Scripterix. It is full of handy tools and source snippets that help solve a wide range of programming problems. Anyone browsing the collection can pick up practical tips and inspiration for their own projects. Inside you will find scripts in multiple programming languages—Python, Java, JavaScript, and more—covering topics such as file handling, data manipulation, UI building, or mathematical problem solving. Because of this variety, the Scripterix Gist is a rich knowledge base for developers at every level. The repository grows constantly, with fresh scripts and improvements added on a regular basis, so you can count on up-to-date solutions that follow current best practices. In short, it is a great source of support and inspiration when you need new ideas or proven answers in everyday work.

GitHub Functions Gist – click here

Gist index Below is a sample of the code you can find on the Scripterix Gist

  • ES6 Ecma262 201
  • Bulma Carousel with Text Content
  • Flex CSS
  • Flex and Grid: grid nested in flex
  • Bootstrap Modal v4.5.3
  • JWT
  • Ideas

Git Bash

The Gist also contains several CLI snippets for version control, pushing repos to GitHub, adding commit messages, and most day-to-day commands. Coming soon: git stash examples for shelving changes in a dirty working tree.

# Initialize local repo
git init

# Add file to index
git add
git add *.js

# Add everything
git add .

# Remove file from index
git rm --cached index.html

# Check working tree
git status

# Commit staged changes
git commit

# Insert message (vim)
i

# Save commit message
:wq

# Commit with inline comment
git commit -m "Changes app.js"

# Push to remote repo
git push

# Create ignore rules (add patterns in .gitignore)
gitignore

# Branches: master holds the whole project; create a feature branch, e.g. login
git branch login

Recommended Git courses

One of the most interesting Polish-language Git courses is kursgita.pl by Maciej Aniserowicz—highly recommended. Course link

On the main Git site you can download the book “Pro Git” by Scott Chacon and Ben Straub for free. It is also the place to find the official Docs curated by the Git maintainers.