Git Tips

Git Tips

Create new Git repository using Bitbucket & SourceTree

1. Create new repository on Bitbucket do NOT create a README or .gitignore file so repository is completely empty.  Make note of the repository url.  You can find it later by selecting Clone from the repository
2. Do git init in root folder of local project
3. In Sourcetree, select File...Open... and select the root folder of your project
4. If necessary, rename the Master branch to match Bitbucket (Main)
4. Commit initial changes
5. In Sourcetree, select Repository...Repository Settings. Select Remotes tab and add the url of the bitbucket repository. Make sure there are no leading/trailing spaces 
6. Push the Main branch
7. You're done

Clear history to save space
$ cd myrepo
$ rm -rf .git

Delete git from project (Delete all .git folders)
$ rm -rf .git

Find why expected folders/files are being ignored by git
$ git check-ignore -v app/src/main/res/drawable/ic_launcher_background.xml
Chuck-will’s-widow

Chuck-will’s-widow

Chuck-Will’s Widow

We hear this bird almost nightly. I used this app to record it’s song to help identify it:

Recorded in backyard

Birdnet sent me to THIS Wikipedia page after identifying the song as being from a Chuck-Will’s-Willow. You can find a recording below the right details column

The Chuck-will’s-willow is often mistaken for the Eastern whip-poor-will which has a similar song.

You can compare the two here:

Chuck-will’s-Willow

Eastern whip-poor-will