- Add
folder/**to.gitignore - Run in the terminal
git rm -r --cached folder - Commit and Push
- Remove
filefrom.gitignore - Run in the terminal
git rm -r --cached folder - Run in the terminal
git add file - Commit and Push
| Spinner spinner = (Spinner)findViewById(R.id.mySpinner); | |
| List<String> list = Arrays.asList(getResources().getStringArray(R.array.state)); | |
| ArrayAdapter<String> spinnerAdapter = new ArrayAdapter<String>(this, android.R.layout.simple_spinner_item, list); | |
| spinnerAdapter.setDropDownViewResource(android.R.layout.simple_spinner_dropdown_item); | |
| spinner.setAdapter(spinnerAdapter); | |
| spinnerAdapter.add("DELHI"); | |
| spinnerAdapter.notifyDataSetChanged(); |
| import javax.swing.*; | |
| public class GUI { | |
| public static void runGui() { | |
| System.out.println("----------------------- Hello From GUI -----------------------"); | |
| String strObjectMass = JOptionPane.showInputDialog(null, "Enter Object Mass"); | |
| double objectMass = 0.0; | |
| try { |
| import glob | |
| import os | |
| import sys | |
| from os import path | |
| from os.path import expanduser | |
| # CLion Activator v1.2 | |
| # By congard | |
| # https://github.com/congard | |
| # http://congard.pp.ua/support-me |
| package com.example; | |
| import java.util.Stack; | |
| public class Main { | |
| public static final char OPENING_PARENTHESES = '('; | |
| public static final char CLOSING_PARENTHESES = ')'; | |
| public static void swap(char[] string, int i, int j) { |
| import android.content.Context | |
| import android.database.Cursor | |
| import android.provider.MediaStore | |
| import android.util.Log | |
| class AudioDataSource { | |
| companion object { | |
| fun getAllAudioFromDevice(context: Context): List<AudioModel> { | |
| val tempAudioList: MutableList<AudioModel> = ArrayList() |
| import java.util.List; | |
| import java.util.ArrayList; | |
| import java.util.*; | |
| class Main { | |
| public static void reversePhrase(String s) { | |
| } |
| # remove specific file from git cache | |
| git rm --cached filename | |
| # remove all files from git cache | |
| git rm -r --cached . | |
| git add . | |
| git commit -m ".gitignore is now working" |
| # -------- | |
| # Hardware | |
| # -------- | |
| # Opcode - operational code | |
| # Assebly mnemonic - abbreviation for an operation | |
| # Instruction Code Format (IA-32) | |
| # - Optional instruction prefix | |
| # - Operational code |
I like writing well-formed git commits that explain the intention behind why a code change was made.
Check out Chris Beams excellent How to Write a Git Commit Message if you haven't read it.
Anyway, for a project I've been working on I've gathered up 900+ commits that hold up a pretty high quality (except for one 😁). Let's look at some trends about these commits!