|
| 1 | +import Image from 'next/image' |
| 2 | + |
| 3 | +export function BranchCasesTable() { |
| 4 | + return ( |
| 5 | + <table> |
| 6 | + <thead> |
| 7 | + <tr> |
| 8 | + <th className="w-[25%]">Situation</th> |
| 9 | + <th className="w-[50%]">Description</th> |
| 10 | + <th className="w-[25%]">Available actions</th> |
| 11 | + </tr> |
| 12 | + </thead> |
| 13 | + <tbody> |
| 14 | + <tr> |
| 15 | + <td className="align-top"> |
| 16 | + <Image |
| 17 | + src="/share/branches/case-synced.png" |
| 18 | + alt="Synced" |
| 19 | + width={180} |
| 20 | + height={18} |
| 21 | + className="m-0" |
| 22 | + /> |
| 23 | + </td> |
| 24 | + <td className="align-top"> |
| 25 | + The local and remote branches are synchronized. |
| 26 | + </td> |
| 27 | + <td className="align-top"> |
| 28 | + <Image |
| 29 | + src="/share/branches/case-synced-actions.png" |
| 30 | + alt="Synced actions" |
| 31 | + width={485} |
| 32 | + height={28} |
| 33 | + className="m-0" |
| 34 | + /> |
| 35 | + </td> |
| 36 | + </tr> |
| 37 | + <tr> |
| 38 | + <td className="align-top"> |
| 39 | + <Image |
| 40 | + src="/share/branches/case-local-only.png" |
| 41 | + alt="Local only" |
| 42 | + width={82} |
| 43 | + height={18} |
| 44 | + className="m-0" |
| 45 | + /> |
| 46 | + </td> |
| 47 | + <td className="align-top"> |
| 48 | + You have a branch that the server doesn't have. |
| 49 | + </td> |
| 50 | + <td className="align-top"> |
| 51 | + <Image |
| 52 | + src="/share/branches/case-local-only-actions.png" |
| 53 | + alt="Local only actions" |
| 54 | + width={485} |
| 55 | + height={28} |
| 56 | + className="m-0" |
| 57 | + /> |
| 58 | + </td> |
| 59 | + </tr> |
| 60 | + <tr> |
| 61 | + <td className="align-top"> |
| 62 | + <Image |
| 63 | + src="/share/branches/case-remote-only.png" |
| 64 | + alt="Remote only" |
| 65 | + width={116} |
| 66 | + height={18} |
| 67 | + className="m-0" |
| 68 | + /> |
| 69 | + </td> |
| 70 | + <td className="align-top"> |
| 71 | + The server has a branch that you don't have. |
| 72 | + </td> |
| 73 | + <td className="align-top"> |
| 74 | + <Image |
| 75 | + src="/share/branches/case-remote-only-actions.png" |
| 76 | + alt="Remote only actions" |
| 77 | + width={485} |
| 78 | + height={72} |
| 79 | + className="m-0" |
| 80 | + /> |
| 81 | + </td> |
| 82 | + </tr> |
| 83 | + <tr> |
| 84 | + <td className="align-top"> |
| 85 | + <Image |
| 86 | + src="/share/branches/case-local-new.png" |
| 87 | + alt="Local has new" |
| 88 | + width={116} |
| 89 | + height={56} |
| 90 | + className="m-0" |
| 91 | + /> |
| 92 | + </td> |
| 93 | + <td className="align-top"> |
| 94 | + You made some commits and haven't uploaded them yet. |
| 95 | + </td> |
| 96 | + <td className="align-top"> |
| 97 | + <Image |
| 98 | + src="/share/branches/case-local-new-actions.png" |
| 99 | + alt="Local has new actions" |
| 100 | + width={485} |
| 101 | + height={50} |
| 102 | + className="m-0" |
| 103 | + /> |
| 104 | + </td> |
| 105 | + </tr> |
| 106 | + <tr> |
| 107 | + <td className="align-top"> |
| 108 | + <Image |
| 109 | + src="/share/branches/case-remote-new.png" |
| 110 | + alt="Remote has new" |
| 111 | + width={135} |
| 112 | + height={56} |
| 113 | + className="m-0" |
| 114 | + /> |
| 115 | + </td> |
| 116 | + <td className="align-top"> |
| 117 | + The server has some new commits which you haven't accepted yet. |
| 118 | + </td> |
| 119 | + <td className="align-top"> |
| 120 | + <Image |
| 121 | + src="/share/branches/case-remote-new-actions.png" |
| 122 | + alt="Remote has new actions" |
| 123 | + width={485} |
| 124 | + height={72} |
| 125 | + className="m-0" |
| 126 | + /> |
| 127 | + </td> |
| 128 | + </tr> |
| 129 | + <tr> |
| 130 | + <td className="align-top"> |
| 131 | + <Image |
| 132 | + src="/share/branches/case-both.png" |
| 133 | + alt="Both have new" |
| 134 | + width={135} |
| 135 | + height={56} |
| 136 | + className="m-0" |
| 137 | + /> |
| 138 | + </td> |
| 139 | + <td className="align-top"> |
| 140 | + Both you and the server have some new commits. Congratulations! |
| 141 | + You're going to have to redo your work on top of the new latest |
| 142 | + version from the team. Git has a smorgasbord of options available to |
| 143 | + you, which we cover in the <a href="/time-travel">time travel</a>{' '} |
| 144 | + section. |
| 145 | + </td> |
| 146 | + <td className="align-top"> |
| 147 | + <Image |
| 148 | + src="/share/branches/case-both-actions.png" |
| 149 | + alt="Both have new actions" |
| 150 | + width={485} |
| 151 | + height={94} |
| 152 | + className="m-0" |
| 153 | + /> |
| 154 | + </td> |
| 155 | + </tr> |
| 156 | + </tbody> |
| 157 | + </table> |
| 158 | + ) |
| 159 | +} |
0 commit comments