3 months ago

stargazed | CLI that fetches and sorts GitHub stars

It is difficult to go through the GitHub starred projects as you star over a 100 or more projects.

This CLI automatically fetches and sorts the GitHub starred projects to a markdown file by the Language used.

The CLI has also the ability to create a repository for it and also auto update it daily.

7 months ago

Reset local repository branch to be just like remote repository HEAD

Setting your branch to exactly match the remote branch can be done in two steps:

git fetch origin
git reset --hard origin/<branch>
8 months ago

How to get your SSH Keys from GitHub

Get your public SSH keys from GitHub


Replace "username" with actual GitHub username Source

9 months ago

Ignoring a previously committed file quickly

Files already tracked by Git are not effected by the .gitignore file.

If you want to ignore a file that you've committed in the past,

  • Use echo with >>(double redirection arrow) to append a relative file path to your .gitignore directly from the terminal.
  • Use git rm with the --cached option to delete the file from your remote repository, but keep it in your working directory as an ignored file.
  • Commit.
$ echo debug.log >> .gitignore
$ git rm --cached debug.log
rm 'debug.log'
$ git commit -m "Start ignoring debug.log"
10 months ago

Delete Remote and Local branch in git

For locally:

git branch -d <branch_name>

For remotely

git push origin --delete <branch_name>

Load More