I don't remember ever using this before myself. The main reason you would use this Git command is because it displays almost everything, so you can control+f through to find a particular hash. There is a lot of specially formatted output, so I'll just include a screenshot to give you an idea: If you want color coding and timestamps in your terminal here, I recommend using OhMyZSH. ! chore(deps): update typescript-eslint monorepo to v5.27.0 ! fix(deps): update dependency react-i18next to v11.17.0 ! fix(curriculum): don't block fragment links (#46246) ! fix(client): prevent lower jaw breaking on code evaluation (#46154) ! chore(deps): update dependency to v13.7.3 freecodecamp➜~/web/freeCodeCamp(main)» git ls-remote This Git command displays not only the names of remote repositories, but their reference information, including Git commit hash. freecodecamp➜~/web/freeCodeCamp(main)» git ls-remote -heads This Git command returns the same information, but also includes the hash for these remotes. So if you want, you can just stop reading here and use git branch -r whenever you want to list remote git branches.īut for completeness, I've included 3 other commands you can use, that return different lists. Origin/renovate/typescript-eslint-monorepo freecodecamp➜~/web/freeCodeCamp(main)» git branch -r This Git command will show you remote branches. I will show you command line code examples of each of these.įor all of these examples, I will use freeCodeCamp's open source repository. There are 4 different Git commands you can enter into your command line to list all of the remote branches of a repo.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |