Undo a commit & redo $ git commit -m "Something terribly misguided" # (0: Your Accident) $ git reset HEAD~ # (1) [ edit files as necessary ] # (2) $ git add . # (3) $ git commit -c ORIG_HEAD # (4) This command is responsible for the undo. It will undo your … [Read more...]
How do I undo ‘git add’ before commit?
You can undo git add before commit with git reset <file> which will remove it from the current index (the "about to be committed" list) without changing anything else. You can use git reset without any file name to unstage all due changes. This can come in handy when there are too many files to be listed one by one in a reasonable amount of time. In old … [Read more...]
CCNA DC FAQ: VLAN Trunking and Configuration
CCNA DC FAQ: VLAN Trunking and Configuration Figure: Network with One Switch and Three VLANs Q1. Imagine that on Switch 1 you are told to configure port Ethernet 1/1 to participate in VLAN 10. Which commands would enable interface Ethernet 1/1 to participate in VLAN 10? (Choose two answers.) a. switchport mode trunk b. switchport access vlan 10 c. no shutdown d. … [Read more...]
CCNA DC FAQ: Fundamentals of IP Version 6
CCNA Data Center FAQ: Fundamentals of IP Version 6 Figure: Example of Static IPv6 Addresses Q1. Of the following list of motivations for the Internet community to create IPv6 to replace IPv4, which was the most important reason? a. To remove the requirement to use NAT when connecting to the Internet b. To simplify the IP header to simplify router-forwarding CPU time c. … [Read more...]
CCNA DC FAQ: Anayzing Existing Subnets
CCNA DC FAQ: Anayzing Existing Subnets Figure: Find the Subnet ID: 130.4.102.1, 255.255.240.0 Q1. When you’re thinking about an IP address using classful addressing rules, the address can have three parts: network, subnet, and host. If you examined all the addresses in one subnet, in binary, which of the following answers correctly states which of the three parts of the … [Read more...]
How to resolve merge conflicts in a Git repository
Try: git mergetool It opens a GUI that steps you through each conflict, and you get to choose how to merge. Sometimes it requires a bit of hand editing afterwards, but usually it's enough by itself. It is much better than doing the whole thing by hand certainly. Below is the sample procedure to use vimdiff for resolve merge conflicts. Step 1: Run following commands in … [Read more...]
CCDA FAQ: Data Center Design
CCDA FAQ: Data Center Design Q1. What are two methods for implementing unified fabric in the data center over 10Gigabit Ethernet? a. VSS b. FCoE c. iSCSI d. vPC Answer: B and C. Fibre Channel over Ethernet (FCoE) and Internet Small Computer Systems Interface (iSCSI) are two methods for implementing unified fabric in the data center over 10 Gigabit Ethernet. Q2. What best … [Read more...]
Network Security FAQ: Cryptography
Network Security FAQ: Cryptography Q1. How many possible keys are there for an 8-bit key? a. 8 b. 82 c. 28 d. 65,536 Answer: c. There are 8 bits in that key, and all those bits can have two different values. To calculate the possible keys, multiply 2 by 2 by 2one time for every bit, or 28. Q2. Which type of cipher typically acts on small units of data? a. Block … [Read more...]
CCNA FAQ: Understanding Wireless Networking
CCNA FAQ: Understanding Wireless Networking Q1. Three agencies manage the standards and frequencies of wireless networks. List the names of these agencies and briefly describe their functions. Answer: The agencies that govern wireless networks are as follows: The International Telecommunication Union-Radiocommunication Sector (ITU-R) regulates the radio frequencies used for … [Read more...]
CCNP Route FAQ: Managing Scalable Network Growth
CCNP Route FAQ: Managing Scalable Network Growth Q1. State two reasons to use an IP tunnel. Answer: The following are reasons to use an IP tunnel: To solve problems with discontiguous networks To simplify network administration To tunnel desktop protocols through an IP-only backbone Q2. State instances when access lists may be used for something other than … [Read more...]