Skip to content

Instantly share code, notes, and snippets.

View MGhandour92's full-sized avatar

Mohamed El Ghandour MGhandour92

View GitHub Profile
@lqdev
lqdev / AccessToken.cs
Last active January 5, 2021 17:33
Client Credentials Authorization Flow in C# (Spotify API)
using System;
namespace authtest
{
class AccessToken
{
public string access_token { get; set; }
public string token_type { get; set; }
public long expires_in { get; set; }
}
@dsernst
dsernst / comparing-git-add-all.md
Last active July 10, 2024 20:35
Compare `git add .` vs `git add -A`

git add . vs git add -A

Both of these will stage all files, including new files (which git commit -a misses) and deleted files.

The difference is that git add -A also stages files in higher directories that still belong to the same git repository. Here's an example:

/my-repo
  .git/
 subfolder/