How to Upload a Project on Github using the command line?
1.Create a new repository on GitHub.
2.Open Git Bash command line terminal.
3.Copy current working directory to your local project.
4.Initialize the local directory as a Git repository.
-> git init
5.Add the files to your new local repository. This stages them for the first commit.
-> git add .
6.Commit the files that you’ve staged in your local repository.
-> git commit -m "initial commit message"
7.Copy the HTTPS URL of your newly created GitHub repo,In the Command prompt, add the URL for the remote repository where your local repository will be pushed.
-> git remote add origin <remote repository URL>
-> git remote -v
Push the changes in your local repository to GitHub repository
-> git push -f origin master
That’s all
1.Create a new repository on GitHub.
2.Open Git Bash command line terminal.
3.Copy current working directory to your local project.
4.Initialize the local directory as a Git repository.
-> git init
5.Add the files to your new local repository. This stages them for the first commit.
-> git add .
6.Commit the files that you’ve staged in your local repository.
-> git commit -m "initial commit message"
7.Copy the HTTPS URL of your newly created GitHub repo,In the Command prompt, add the URL for the remote repository where your local repository will be pushed.
-> git remote add origin <remote repository URL>
-> git remote -v
Push the changes in your local repository to GitHub repository
-> git push -f origin master
That’s all
====== Docker =======
What Is Docker?
Docker is an open source platform to develop, ship, and run applications, more commonly known as a container manager.
What Is a Docker Machine?
A Docker machine is a utility that lets you install Docker on virtual hosts, and then manage those hosts from the command line.
1. docker --version - Docker version
####List of Docker Commands####
##Docker Container Commands
1. docker create <IMAGE NAME> - Create a container (without starting it)
2. docker rename <CONTAINER_NAME> <NEW_CONTAINER_NAME> - Rename an existing container
3. docker run [IMAGE] [COMMAND] - Run a command in a new container
4. docker run --rm [IMAGE] – removes a container after it exits.
5. docker run -td [IMAGE] – starts a container and keeps it running.
6. docker run -it [IMAGE] – starts a container, allocates a pseudo-TTY connected to the container’s stdin, and creates an interactive bash shell in the container.
7. docker run -it-rm [IMAGE] – creates, starts, and runs a command inside the container. Once it executes the command, the container is removed.
8. docker rm <CONTAINER NAME> - Delete a container (if it is not running)
9. docker update <CONTAINER NAME> - Update the configuration of one or more containers:
##Starting and Stopping Containers
How to start and stop processes in a particular container.
10. docker start <CONTAINER NAME> - Start a container
11. docker stop <CONTAINER NAME> - Stop a running container
12 docker restart <CONTAINER NAME> - Stop a running container and start it up again
13. docker pause <CONTAINER NAME> - Pause processes in a running container
14. docker unpause <CONTAINER NAME> - Unpause processes in a running container
15. docker wait <CONTAINER NAME> - Block a container until others stop (after which it prints their exit codes)
16 docker kill <CONTAINER NAME> - Kill a container by sending a SIGKILL to a running container
17. docker attach <CONTAINER NAME> - Attach local standard input, output, and error streams to a running container
## Docker Image Commands
All the necessary commands for working with Docker images.
18. docker build [URL] - Create an image from a Dockerfile
19. docker build -t – builds an image from a Dockerfile in the current directory and tags the image
20. docker pull [IMAGE] - Pull an image from a registry
21. docker push [IMAGE] - Push an image to a registry
22. docker import [URL/FILE] - Create an image from a tarball
23. docker commit <CONTAINER NAME> [NEW_IMAGE_NAME] - Create an image from a container
24. docker rmi [IMAGE] - Remove an image
25. docker load [TAR_FILE/STDIN_FILE] - Load an image from a tar archive or stdin
26. docker save [IMAGE] > [TAR_FILE] - Save an image to a tar archive, streamed to STDOUT with all parent layers, tags, and versions
##Docker Commands for Container and Image Information
27. docker ps - List running containers
28. docker ps -a – lists both running containers and ones that have stopped
29. docke image ls - List all images that are locally stored with the docker engine
30. docker inspect [OBJECT_NAME/ID] - List low-level information on Docker objects
31. docker events <CONTAINER NAME> - List real-time events from a container
32. docker port <CONTAINER NAME> - Show port (or specific) mapping for a container
33. docker top <CONTAINER NAME> - Show running processes in a container
34. docker stats <CONTAINER NAME> - Show live resource usage statistics of containers
35. docker diff <CONTAINER NAME> - Show changes to files (or directories) on a filesystem
36. docker logs <CONTAINER NAME> - List the logs from a running container
37. docker history [IMAGE] - Show the history of an image
##Networks
What Is Docker?
Docker is an open source platform to develop, ship, and run applications, more commonly known as a container manager.
What Is a Docker Machine?
A Docker machine is a utility that lets you install Docker on virtual hosts, and then manage those hosts from the command line.
1. docker --version - Docker version
####List of Docker Commands####
##Docker Container Commands
1. docker create <IMAGE NAME> - Create a container (without starting it)
2. docker rename <CONTAINER_NAME> <NEW_CONTAINER_NAME> - Rename an existing container
3. docker run [IMAGE] [COMMAND] - Run a command in a new container
4. docker run --rm [IMAGE] – removes a container after it exits.
5. docker run -td [IMAGE] – starts a container and keeps it running.
6. docker run -it [IMAGE] – starts a container, allocates a pseudo-TTY connected to the container’s stdin, and creates an interactive bash shell in the container.
7. docker run -it-rm [IMAGE] – creates, starts, and runs a command inside the container. Once it executes the command, the container is removed.
8. docker rm <CONTAINER NAME> - Delete a container (if it is not running)
9. docker update <CONTAINER NAME> - Update the configuration of one or more containers:
##Starting and Stopping Containers
How to start and stop processes in a particular container.
10. docker start <CONTAINER NAME> - Start a container
11. docker stop <CONTAINER NAME> - Stop a running container
12 docker restart <CONTAINER NAME> - Stop a running container and start it up again
13. docker pause <CONTAINER NAME> - Pause processes in a running container
14. docker unpause <CONTAINER NAME> - Unpause processes in a running container
15. docker wait <CONTAINER NAME> - Block a container until others stop (after which it prints their exit codes)
16 docker kill <CONTAINER NAME> - Kill a container by sending a SIGKILL to a running container
17. docker attach <CONTAINER NAME> - Attach local standard input, output, and error streams to a running container
## Docker Image Commands
All the necessary commands for working with Docker images.
18. docker build [URL] - Create an image from a Dockerfile
19. docker build -t – builds an image from a Dockerfile in the current directory and tags the image
20. docker pull [IMAGE] - Pull an image from a registry
21. docker push [IMAGE] - Push an image to a registry
22. docker import [URL/FILE] - Create an image from a tarball
23. docker commit <CONTAINER NAME> [NEW_IMAGE_NAME] - Create an image from a container
24. docker rmi [IMAGE] - Remove an image
25. docker load [TAR_FILE/STDIN_FILE] - Load an image from a tar archive or stdin
26. docker save [IMAGE] > [TAR_FILE] - Save an image to a tar archive, streamed to STDOUT with all parent layers, tags, and versions
##Docker Commands for Container and Image Information
27. docker ps - List running containers
28. docker ps -a – lists both running containers and ones that have stopped
29. docke image ls - List all images that are locally stored with the docker engine
30. docker inspect [OBJECT_NAME/ID] - List low-level information on Docker objects
31. docker events <CONTAINER NAME> - List real-time events from a container
32. docker port <CONTAINER NAME> - Show port (or specific) mapping for a container
33. docker top <CONTAINER NAME> - Show running processes in a container
34. docker stats <CONTAINER NAME> - Show live resource usage statistics of containers
35. docker diff <CONTAINER NAME> - Show changes to files (or directories) on a filesystem
36. docker logs <CONTAINER NAME> - List the logs from a running container
37. docker history [IMAGE] - Show the history of an image
##Networks
38. docker network ls - List networks
39. docker network rm <NETWORK NAME> - Remove one or more networks
40. docker network inspect <NETWORK NAME> - Show information on one or more networks
41. docker network connect <NETWORK NAME> <CONTAINER> - Connects a container to a network
42. docker network disconnect <NETWORK NAME> <CONTAINER> - Disconnect a container from a network
39. docker network rm <NETWORK NAME> - Remove one or more networks
40. docker network inspect <NETWORK NAME> - Show information on one or more networks
41. docker network connect <NETWORK NAME> <CONTAINER> - Connects a container to a network
42. docker network disconnect <NETWORK NAME> <CONTAINER> - Disconnect a container from a network
Forwarded from Manjeet Kumar
Git Interview Questions
---------------------------
1. What is Version control system or Source code manager?
2. Benefits of VCS or SCM?
3. What is Git and What is a repository in GIT?
4. Diffrence between Git and SVN?
5. Two types of git authentication?
6. Branches in Git and its purpose?
What is the common branching pattern in GIT?
7. What is Pull requests?
8. How to install git in Linux & Windows?
9. How to setup repository though command line?
10. How to setup repository in github and clone it?
11. What is git clone command used for?
12. What is git config command user for?
13. Git config data is stored in what location?
14. Git config global and local files?
15. Content of git config file?
16. Git add command’s purpose?
17. How to remove/rename files in local git repo?
18. git commit command’s purpose?
19. How to sync local git repo data with github?
20. git fetch?
21. git merge?
22. git pull?
23. How to change branches in local git repo?
24. What is the difference between ‘git remote’ and ‘git clone’?
25. git status?
26. What is the function of ‘git rm’?
27. What is the function of ‘git checkout’ in git?
28. What is the use of ‘git log’?
29. Explain what is commit message?
30. How to setup github ssh authentication?
31. What is git webhooks?
33.Tell me the branching strategies you followed for your project?
34. What is git rebase?
35. What is git stash?
36. What is the difference between git pull and git fetch?
37. Differnce between git and svn?
38. Advantages of git compare with svn?
39. Explain about staging area in git?
40. How do you check after git merge …where merging is correctly or not?
41. How to create branch and delete a branch?
42. Do you get any conflicts while merging..how can u resolve conflicts?
43. How can u implement authentication and authorization in git?
44. What is the difference between git rebase and git merge?
45. How to merge the code?
46. Pull request in git hub - ---git pull
47. Forking a repository in git hub?
48. Diff between svn and git ---svn is centralized version control and git is Distributed Version Control.?
49. What is forking in git repositories?
50. explain about soft and hard reset and their difference?
51. What kind of branching and merging you worked on GIT.
52. with this kind of environment and the git release branching, does it work in Agile methodology?
53. What is tagging in GIT and what is the diff between feature branching and tagging?
---------------------------
1. What is Version control system or Source code manager?
2. Benefits of VCS or SCM?
3. What is Git and What is a repository in GIT?
4. Diffrence between Git and SVN?
5. Two types of git authentication?
6. Branches in Git and its purpose?
What is the common branching pattern in GIT?
7. What is Pull requests?
8. How to install git in Linux & Windows?
9. How to setup repository though command line?
10. How to setup repository in github and clone it?
11. What is git clone command used for?
12. What is git config command user for?
13. Git config data is stored in what location?
14. Git config global and local files?
15. Content of git config file?
16. Git add command’s purpose?
17. How to remove/rename files in local git repo?
18. git commit command’s purpose?
19. How to sync local git repo data with github?
20. git fetch?
21. git merge?
22. git pull?
23. How to change branches in local git repo?
24. What is the difference between ‘git remote’ and ‘git clone’?
25. git status?
26. What is the function of ‘git rm’?
27. What is the function of ‘git checkout’ in git?
28. What is the use of ‘git log’?
29. Explain what is commit message?
30. How to setup github ssh authentication?
31. What is git webhooks?
33.Tell me the branching strategies you followed for your project?
34. What is git rebase?
35. What is git stash?
36. What is the difference between git pull and git fetch?
37. Differnce between git and svn?
38. Advantages of git compare with svn?
39. Explain about staging area in git?
40. How do you check after git merge …where merging is correctly or not?
41. How to create branch and delete a branch?
42. Do you get any conflicts while merging..how can u resolve conflicts?
43. How can u implement authentication and authorization in git?
44. What is the difference between git rebase and git merge?
45. How to merge the code?
46. Pull request in git hub - ---git pull
47. Forking a repository in git hub?
48. Diff between svn and git ---svn is centralized version control and git is Distributed Version Control.?
49. What is forking in git repositories?
50. explain about soft and hard reset and their difference?
51. What kind of branching and merging you worked on GIT.
52. with this kind of environment and the git release branching, does it work in Agile methodology?
53. What is tagging in GIT and what is the diff between feature branching and tagging?
Hi,
I just started a Learning Group, and I’d love to have you as a member. You are hereby invited to join the new.
A Lean In group is a small group of technicians who meet on Facebook to support each other and learn new skills. Our "Full Stack Java Developer Community" will be a place where we can be unapologetically ambitious, expand our networks, and help each other achieve our goals.
We’ll dive into a different topic ranging from identifying our strengths to combating bias at work. Lean In has teamed up with leading experts to create and activities that will guide our discussions.
I think you’d be a wonderful addition to the group and hope you’ll consider joining us.
Facebook Page: https://www.facebook.com/fullstackjavadevelopercommunity
Facebook Group: https://www.facebook.com/groups/fullstackjavadevelopercommunity
GitHub: https://github.com/fullstackjavadevelopercommunity
Twitter: https://twitter.com/i_fsjdc
Blog : https://fullstackjavadevelopercommunity.blogspot.com
Google Group : https://groups.google.com/g/fullstackjavadevelopercommunity
please share this with your friends.
Warm wishes,
Full Stack Java Developer Community
I just started a Learning Group, and I’d love to have you as a member. You are hereby invited to join the new.
A Lean In group is a small group of technicians who meet on Facebook to support each other and learn new skills. Our "Full Stack Java Developer Community" will be a place where we can be unapologetically ambitious, expand our networks, and help each other achieve our goals.
We’ll dive into a different topic ranging from identifying our strengths to combating bias at work. Lean In has teamed up with leading experts to create and activities that will guide our discussions.
I think you’d be a wonderful addition to the group and hope you’ll consider joining us.
Facebook Page: https://www.facebook.com/fullstackjavadevelopercommunity
Facebook Group: https://www.facebook.com/groups/fullstackjavadevelopercommunity
GitHub: https://github.com/fullstackjavadevelopercommunity
Twitter: https://twitter.com/i_fsjdc
Blog : https://fullstackjavadevelopercommunity.blogspot.com
Google Group : https://groups.google.com/g/fullstackjavadevelopercommunity
please share this with your friends.
Warm wishes,
Full Stack Java Developer Community
Facebook
Log in or sign up to view
See posts, photos and more on Facebook.