Github Troubleshooting

Github Troubleshooting

Copy-and-Paste commands to resolve minor issues encountered with Github.

Commands to resolve common issues encountered in Gihtub.


Github Notes

Basic Commands

Clone an existing branch:

git clone git@github.com:user_or_organization_name/repo_name.git

Pull latest updates from github repo:

git pull origin

Push latest local updates to github repo:

git push origin

Change branch on local repo:

git checkout branch_name

Create and switch to new branch in local repo:

git checkout -b new_branch_name

Push the new branch, set as new default upstream branch

git push -u origin new_branch_name

Github Troubleshooting

Minor issues arise when using Github, below are some quick fixes:

Maximum File Size Warning

remote: warning: File c536e29d7a977516d7e8aed38f210a36b93a9864 is 83.40 MB; this is larger than GitHub's recommended maximum file size of 50.00 MB

You can identify the file associated with that blob hash by running this command in your repository:

git rev-list --objects --all | grep c536e29d7a977516d7e8aed38f210a36b93a9864

Output should look like this:

c536e29d7a977516d7e8aed38f210a36b93a9864 backend/videolibrary/c6fd0cb0-dcda-48da-a395-d03d86732bb2.mp4