Skip to content

Instantly share code, notes, and snippets.

View Enfors's full-sized avatar

Christer Enfors Enfors

View GitHub Profile
@ben-doyle
ben-doyle / perforce.MD
Last active November 21, 2023 18:33
Perforce for git users.

Understanding Perforce (as a git user).

Commands

Git Perforce Command Line P4V Notes
git pull p4 sync get latest revision
n/a p4 update ? Get latest revision without overwriting files that have been changed.
git checkout p4 edit checkout You plan to change a file from the version control system
git commit p4 submit submit
git push n/a n/a No perforce equivalent. There is no concept of a pure local submit in Perforce.
@ojura
ojura / gist:82c5b5da84cdcf6c9537685ea97daaa9
Created November 3, 2017 12:25
How to display a scrollable curses pad from python
#!/usr/bin/env python2
import curses
import time
mypad_contents = []
def main(scr):
# Create curses screen
scr.keypad(True)