Skip to content

Latest commit

 

History

History
95 lines (65 loc) · 3.2 KB

File metadata and controls

95 lines (65 loc) · 3.2 KB

Creating a Personal Access Token (PAT) and Pushing the Branch

✅ Status

  • Implementation: COMPLETE
  • Commit created: 36d2fe6
  • Push blocked by: Requires Personal Access Token (GitHub no longer supports password auth)

🔑 Step 1: Create a Personal Access Token

  1. Go to: https://github.com/settings/tokens

  2. Click "Generate new token" button

  3. Select "Generate new token (classic)"

  4. Fill in the form:

    • Token name: split-contracts-push (or any name you like)
    • Expiration: Choose 30/60/90 days or "No expiration"
    • Select scopes: Check the box for repo (full control of private repositories)
  5. Click "Generate token" at the bottom

  6. IMPORTANT: Copy the token immediately - GitHub will only show it once!

    • The token looks like: ghp_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
    • Save it somewhere safe (you'll need it in 2 minutes)

📌 Step 2: Push Using the Token

Open Command Prompt and run:

cd c:\Users\Admin\Desktop\StellarSplit\split-contracts

git config --global --unset credential.helper

git push https://johnsaviour56-ship-it:YOUR_TOKEN_HERE@github.com/johnsaviour56-ship-it/split-contracts.git add-fallback-action-for-auto-resolve:refs/heads/add-fallback-action-for-auto-resolve

git config --global credential.helper manager

Replace YOUR_TOKEN_HERE with the actual token you copied in Step 1.

Example (with fake token):

git push https://johnsaviour56-ship-it:ghp_abc123xyz789@github.com/johnsaviour56-ship-it/split-contracts.git add-fallback-action-for-auto-resolve:refs/heads/add-fallback-action-for-auto-resolve

✅ Verify Success

After pushing, check:

🎯 What's Being Pushed

Branch: add-fallback-action-for-auto-resolve
Commit: 36d2fe62aa862b36cc50db6896a087d75c0486db
Message: feat: add fallback_action to auto_resolve_rules

Files: lib.rs, types.rs, test.rs
Changes: 306 insertions, 4 deletions

Features:
✓ fallback_action field added to InvoiceOptions, InvoiceExt, Invoice
✓ auto_resolve() executes fallback when no rules match
✓ Idempotent behavior (no re-triggering after resolution)
✓ 5 comprehensive tests covering all scenarios
✓ All acceptance criteria met

🔒 Security Notes

  • Personal Access Tokens are temporary (expires after set date)
  • Only use for this push - don't share it publicly
  • You can delete/revoke the token later at https://github.com/settings/tokens
  • For future pushes, you can use this same token or create new ones

❓ Troubleshooting

If push still fails:

  1. Double-check the token is copied correctly (no extra spaces)
  2. Make sure you're using the right GitHub username: johnsaviour56-ship-it
  3. Verify the token has repo scope selected
  4. Try creating a new token and try again

If you get "Element not found" error:

  • Windows Credential Manager may still have old credentials cached
  • Try: cmdkey /delete:git:https://github.com

✨ That's It!

Once you paste the token and run the push command, your branch will be on GitHub! 🎉