cat introspection_query.json
{
"query": "query IntrospectionQuery {
__schema {
queryType { name }
mutationType { name }Do git status, this will show you what files have changed. Since you stated that you
don't want to keep the changes you can do git checkout -- <file name> or git reset
1. git checkout master
- git checkout allows you to move between branches and potentially restore tree files.
- The command git checkout master switches you to the master branch, which is always the best place to start before making changes to your repo.
2. git pull origin master
- Get the latest updates on the master branch,
- This is typically done to merge upstream changes. A git pull is actually a combination of git fetch, which grabs all the latest information, and git merge, which merges the two histories together.
- Essentially, git pull origin master allows you to do two commands at once. It’s a great time-saver!
- Always run git pull origin master before starting work on a repository. After all, you want to be sure your repository is up to date with the remote repo where you collaborate.
| GIT COMMANDS | |
| ============================================================================= | |
| git status: Shows current status of git files. | |
| git log: Shows list of commits to git branch. | |
| git commit -m "Comment about changes on this version": Commits changes to branch you're currently on | |
| git branch: Lists all a Git project’s branches. |
| # display file with line numbers | |
| cat file -n | |
| # display gzipped file with line numbers | |
| zcat file | cat -n | |
| # display file from the i. line to j. line (that is j minus i there) | |
| cat file | head -n j | tail -n j-i | |
| # remove first line of the file (efficient) |
Once in a while, you may need to cleanup resources (containers, volumes, images, networks) ...
// see: https://github.com/chadoe/docker-cleanup-volumes
$ docker volume rm $(docker volume ls -qf dangling=true)
$ docker volume ls -qf dangling=true | xargs -r docker volume rm